473,223 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,223 software developers and data experts.

How to compress BMP image programatically..

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
jb*******@yahoo.co.in
Nov 17 '05 #1
5 11613
In my knowledge, the Image class can convert images types to jpeg.

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
Nov 17 '05 #2
Which image class, can I have more details...

"codymanix" <do*********************@gmx.de> wrote in message
news:Ol**************@TK2MSFTNGP11.phx.gbl...
In my knowledge, the Image class can convert images types to jpeg.

--
cody

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


Nov 17 '05 #3
Jigar Mehta wrote:
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)


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/produc...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


Nov 17 '05 #4
-----Original Message-----
Jigar Mehta wrote:
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)

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
Nov 17 '05 #5
> 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
Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Edward | last post by:
Thanks to Bob Powel (http://www.bobpowell.net/onebit.htm) I'm able to compress an image. However, this method takes a long time to compress an image. Does anyone know a quicker way? (The images I...
2
by: Dave Bootsma | last post by:
Is it possible to programatically save a certain image from a certain web page? I want to automatically get a specific graphic from a specific web page programatically so I can automate the...
0
by: jason | last post by:
I googled a lot, couldn't find a good solution. Any help is greatly appreciated. What I want to do is: Given a web page in a running IE browser , i want to save an image in this web page to...
1
by: ironpythonster | last post by:
Hi everyone, this should be a quick question. I am writing a function to compress the Jpeg file,with the API Image.Save(...) . the code as follow that: public static void Save(string...
2
by: Zuhaib Hyder | last post by:
string stFileName = "abc"; string stFullFilePath = Server.MapPath("images/" + stFileName + ".jpg"); System.Drawing.Image i = System.Drawing.Image.FromFile(stFullFilePath); ...
5
by: zgh1970 | last post by:
Hi, Friends, default DB2 compression library. I am wondering if this option will have any new restriction on RESTORE in the following. (Can I used that backup imsage for restore at the...
2
by: nicky77 | last post by:
Hi there, I'm brand new to ASP (from PHP background) and i am developing some content management for a web site. I'm having a problem with the fact that I want to allow image files to be uploaded...
4
by: Lennart | last post by:
I heard a rumor that compress is only availible in Enterprise Edition in 9.5, can anyone confirm/reject this rumor? /Lennart
6
by: mohammedsiddig | last post by:
Hello php programmer ! how i can compress image and storage it on oracle ? the compress must reduce the original size of the image to more than half of original size
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.