|
-
Jul 21st, 2004, 09:02 AM
#1
Thread Starter
Fanatic Member
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.
-
Jul 21st, 2004, 09:09 AM
#2
Addicted Member
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.
-
Jul 21st, 2004, 09:26 AM
#3
Google for bmp2jpeg.dll , it gives yu quite a good quality of conversion.
-
Jul 21st, 2004, 09:36 AM
#4
Here it is, had it lying around somewhere.
VB Code:
BmpToJpeg fileName & ".bmp", fileName & ".jpg", 100
-
Jul 21st, 2004, 11:54 AM
#5
Thread Starter
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|