Home All Groups Group Topic Archive Search About
Author
16 Jun 2009 9:16 AM
kiwi
Does anyone have any idea of compressing .jpg files in VB6 on WinXP
Thanks
Dave

Author
16 Jun 2009 10:00 AM
Nobody
"kiwi" <dcw***@pfpnet.com> wrote in message
news:c46b5dd1-0c91-414f-8049-2cf4840cde58@r31g2000prh.googlegroups.com...
> Does anyone have any idea of compressing .jpg files in VB6 on WinXP

What do you mean by compression? Changing JPEG quality? Or compress the
file, like ZIP? Or other?

JPEG have quality levels to reduce their size. If you only need this for one
specific task, you can use IrfanView freeware, which can do batch
conversion/rename, via the user interface, or by command lines.
Are all your drivers up to date? click for free checkup

Author
16 Jun 2009 1:16 PM
mayayana
There's pure VB code here:

http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=50065&ln
gWId=1

  Two problems, though: When I tried it the code
seemed to be quite slow. Also, the author has
included an absurd, "blowhard" license that
claims you have no right to use the code for anything
commercial without permission, and that all uses
require a vanity acknowledgement of the author.

  There are also a number of compiled options. There's
ImageMagick, open source, but from what I've
seen it seems to be wildly bloated, and it no longer
supports Win9x. It's probably only relevant if you
wanted to recompile only the JPG code (C++). There's
also an Intel DLL somewhere,
but that had slight license restrictions and I think they
discontinued it.

   Several years ago I went looking and
tried a half dozen or so options. I ended up with
something called nviewlib.dll. It works well and is one
of the smallest DLLs I found. The DLL has a Borland
icon, so it may just be a wrapper for Delphi JPG
handling. I don't know. But I've had good luck with it.
(The license is "postcardware" but the email address
seems to be long-since inactive.)

  There's also what seems to be a similar thing from
Jerry French, who used to frequent this group:
http://www.jerryfrench.co.uk/pictojpg.htm
  It comes with Delphi source code, and Jerry always
had very dependable info. in his posts here, so I'd be
inclined to trust whatever he wrote.


Show quoteHide quote
> Does anyone have any idea of compressing .jpg files in VB6 on WinXP
> Thanks
> Dave
Author
16 Jun 2009 6:56 PM
Jim Mack
kiwi wrote:
> Does anyone have any idea of compressing .jpg files in VB6 on WinXP

Take a look at what the Intel Jpeg Library offers (IJLxxx.dll)

Here's a VB example:

http://www.vbaccelerator.com/home/VB/Code/vbMedia/Saving_Pictures_to_JPG/Using_Intel_JPG_Library/article.asp

--
   Jim Mack
   Twisted tees at http://www.cafepress.com/2050inc
   "We sew confusion"
Author
16 Jun 2009 7:02 PM
Karl E. Peterson
kiwi wrote:
> Does anyone have any idea of compressing .jpg files in VB6 on WinXP

One more option for the mix...

   The FreeImage Project
   http://freeimage.sourceforge.net/

--
..NET: It's About Trust!
http://vfred.mvps.org
Author
16 Jun 2009 9:50 PM
Bob Riemersma
"kiwi" <dcw***@pfpnet.com> wrote in message
news:c46b5dd1-0c91-414f-8049-2cf4840cde58@r31g2000prh.googlegroups.com...
> Does anyone have any idea of compressing .jpg files in VB6 on WinXP
> Thanks
> Dave

Vista and later include WIA 2.0 which can handle this sort of thing.  The
COM interface is fairly robust and simple to use from VB6 or VBScript.

You can download it from Microsoft and install into XP SP1 or later, and it
can be redistributed.  From the readme:

"The Windows Image Acquisition Library v2.0 is only designed to support the
PNG, BMP, JPG, GIF and TIFF image formats.  It should not be relied upon to
support other formats, though they may appear to be supported depending on
system configuration."

Bookmark and Share