> Is there a VB 6 API or a separate component that allows
> image conversion?
> I want to batch process an entire folder of .jpg, or .gif
> images and create specified sized thumbnails of the
> images and retain the large original image.
> Is there a component or program that can do this from VB
> 6, not .Net?
> I would be willing to write the code if I knew it was
> possible with VB 6 accessible components.
There's two problems here, first up you need to load the original image and
scale it down to a thumbnail.
I couldn't find a really good old post of mine on the subject, but here's
one that does a reasonable job:
If that's no good I have an old project that used to be on my old site,
demonstrating creating of thumbnails.
The second problem is saving as a .jpg. If you think that .bmp would be
acceptable then you can simply call the SavePicture() method (Or even write
your own Bitmap output routines which would give you more control over the
If you really do want .jpg output then you'll have a bit more of a job on
your and you'll need to look into a third party solution to help you out.
Here's an old post with a bunch of libraries in:
You could also use GDI+ if you want to dig into that one, it's another thing
to redistribute though.
In case you need it, here's how to create the command line application side
of things. Remove the form's from your project, add a new module and add
Private Sub Main()
This will now be your application start point, and you can process the
command line with the Command$() function.
Hope this helps,
- Microsoft Visual Basic MVP -