Link to home
Start Free TrialLog in
Avatar of ksm
ksm

asked on

Use VB 6 to resize jpg and save resized file

Hi:

I would like to be able to load in a jpg image, resize it with visual basic (I'm using version 6) and then save the resized image back out as a jpg.  Any ideas?

Thank you.

ksm
Avatar of mjdmjd
mjdmjd

I did something similar and used the imagemagik suite - which are basically a bunch of command line image manipulation tools ... which you can use them from VB using the shell command.

http://www.imagemagick.net/www/download.html?

You can do loads of stuff, such as converting, resizing, rotating etc ...

hope this helps

ASKER CERTIFIED SOLUTION
Avatar of wesbird
wesbird

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ksm

ASKER

mjdmjd:

Thank you for pointing me to the tools.  It seems like a robust package with some very cool features.  I chose wesbird's answer, though, because it seemed a little more seemless and I needed to get something up and running very quickly.

wesbird:

Thank you very much.  I was able to get the code up and running with only minor tweaking.  Easy to integrate.  Worked like a champ.

Thanks!
ksm
Thanks,

P.S. You can get a later version of the DLL from http://www.dll-files.com/dllindex/dll-files.shtml?ijl15.  I've been using this one for several months in my app (must have processed 30000 images by now) with no problems.  The version ilj11.dll did bug on about the 5000th image which is why I recommend using ijl15.dll - that one is stable.