How to compress BMP image programatically..

9 views
Skip to first unread message

Jigar Mehta

unread,
Dec 31, 2003, 4:27:41 AM12/31/03
to
Hye Friends!!,
Happy New Year!!

I am Jigar Mehta from India. Currently I am working on a project in
which I need to compress some images on the harddisk... I want to make an
engine that reads whole BMP image and then compress it.. The target location
can be of any type.. BMP, TIFF, JPG or any.. Some data loss will be
negligible because all the images are having very high resolution with
32-bit colors (taken from digi-cam).

So, is there any library available in VC.NET for compressing the images
or saving it with some different settings?? Or can we use any other free
library for the task?

If you know any way by which we can compress the images (BMP types) then
please suggest me the way.. I have to do it in VC.NET only.. (as it is a
multithreaded program-fully automated)

--
Jigar Mehta
jbme...@yahoo.co.in


codymanix

unread,
Dec 31, 2003, 6:26:05 AM12/31/03
to
In my knowledge, the Image class can convert images types to jpeg.

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk


Jigar Mehta

unread,
Jan 1, 2004, 2:06:17 AM1/1/04
to
Which image class, can I have more details...

"codymanix" <dont.spam.m...@gmx.de> wrote in message
news:Ol2lgE5z...@TK2MSFTNGP11.phx.gbl...

Carl Daniel [VC++ MVP]

unread,
Jan 1, 2004, 9:30:39 AM1/1/04
to

There are many image processing libraries available, some free, some not.
For the best performance (as far as any I've used), the clear choice is
Pegasus (http://www.pegasusimaging.com/documentimaging.htm). It's also the
most expensive and has a horribly (and needlessly) difficult 'C' API. (They
also support COM and .NET APIs that are much more sensible).

Intel provides graphics libraries as a part of the Intel Performance
Primitives
(http://www.intel.com/software/products/perflib/index.htm?iid=ipp_home+softw
are_libraries). These libraries were free at one time, but that's no longer
the case. These libraries are reasonably performant for most operations
(although for JPEG, for example, Pegasus will be 2-4 times faster than Intel
IPP).

There's a large opensource image processing library called ImageMagik that's
very popular on *nix. It include a broad selection of moderately performant
image processing functions.

If you're only interested in image compression/decompression, there are
individual open-source libraries available for most popular formats. Try
searching with Google for 'libJPEG', 'libPNG', 'libTIFF'.

-cd


anon...@discussions.microsoft.com

unread,
Jan 4, 2004, 6:17:19 AM1/4/04
to

Hi Jiger Mehta,

I am Gangadhar Chiplunkar ( Indian, but now in US ). I
think you can use GDI+ Image object, load the bitmap from
disk file and while saving choose JPEG or other format
which is nothing but compressed image. Hope this works
for you.

Cheers, Chiplunkar G.K. ch...@yahoo.com


Carl Daniel [VC++ MVP]

unread,
Jan 4, 2004, 10:26:30 AM1/4/04
to
> Hi Jiger Mehta,
>
> I am Gangadhar Chiplunkar ( Indian, but now in US ). I
> think you can use GDI+ Image object, load the bitmap from
> disk file and while saving choose JPEG or other format
> which is nothing but compressed image. Hope this works
> for you.

Yes, you can do some of this using GDI+, but AFIAK, the performace is bad
and you're not able to control the compression process very well. Still,
might be an option depending on the application.

-cd


simplysh...@gmail.com

unread,
Sep 10, 2013, 4:27:01 PM9/10/13
to
Do you really want to compress image without hampering its quality? Then you should try these online compressing site to compress your photos. Read it here-:http://rightyaleft.com/webapps/compress-image-files-online-offline/
Reply all
Reply to author
Forward
0 new messages