473,320 Members | 1,991 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,320 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 11625
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
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.