Results 1 to 5 of 5

Thread: Opening bitmaps and saving JPEGs

  1. #1

    Thread Starter
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860

    Opening bitmaps and saving JPEGs

    I have a large amount of bitmap pictures, each using up 1 MB a piece, and I want to convert them to JPEG.

    Is there a program I can use to do this quickly (as in I don't need to open, convert, or save each individually) or do I need to write a program to do it for me?

    So it all boils down to: Can I load a bitmap into memory and save it as a JPEG in vb?



    Oh, forgot to mention, the jpeg cuts the filesize to 100k and the quality loss isn't noticeable... I mean... this chops a good 50 megs off the program size
    Don't pay attention to this signature, it's contradictory.

  2. #2
    Addicted Member big_k105's Avatar
    Join Date
    May 2003
    Location
    North Dakota
    Posts
    195
    well you can rename the image so it will have the jpg extention but it wont be an actual jpg it will still be a bmp atleast that is what i think. i dont think it can actually convert the image to jpg just the name.

  3. #3
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959
    Google for bmp2jpeg.dll , it gives yu quite a good quality of conversion.

  4. #4
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959
    Here it is, had it lying around somewhere.



    VB Code:
    1. BmpToJpeg fileName & ".bmp", fileName & ".jpg", 100

  5. #5

    Thread Starter
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860
    Thanks, that should work great.

    Do I need to declare the function somehow?

    I figure I'll probably get an error... but we'll see
    Don't pay attention to this signature, it's contradictory.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width