473,396 Members | 2,068 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,396 software developers and data experts.

Looking for a better way to compress images.

I am looking for a better way to compress screen shot data.

Currently this line of code:
MyBitMapImage.Save(MyMemoryStream, System.Drawing.Imaging.ImageFormat.Jpeg)

Takes between 70-90 Milliseconds, If I use ImageFormat.PNG, it takes between
50-350 Milliseconds!!!

Can anyone recommend a faster way to compress a .Net BitMap? I have seen
several libraries here:

http://datacompression.info/SourceCode.shtml

Also, I have seen that Intel has the IPP here (but this looks cool, but like
a steep learning curve):

http://www.intel.com/software/products/ipp/
Before I dive into the depths of a new library, I was wondering if anyone
has a recommendation?


Nov 21 '05 #1
2 1561
Hi,

http://www.vb-helper.com/howto_net_save_form_image.html

Ken
-----------------
"gregory_may" <None> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
I am looking for a better way to compress screen shot data.

Currently this line of code:
MyBitMapImage.Save(MyMemoryStream, System.Drawing.Imaging.ImageFormat.Jpeg)

Takes between 70-90 Milliseconds, If I use ImageFormat.PNG, it takes between
50-350 Milliseconds!!!

Can anyone recommend a faster way to compress a .Net BitMap? I have seen
several libraries here:

http://datacompression.info/SourceCode.shtml

Also, I have seen that Intel has the IPP here (but this looks cool, but like
a steep learning curve):

http://www.intel.com/software/products/ipp/
Before I dive into the depths of a new library, I was wondering if anyone
has a recommendation?



Nov 21 '05 #2
Thanks Ken.

This URL is using the same method to save as I am currently using
(bitmap.Save). I don't believe this will improve my performance at all ...
its basically the same code.

If you run across anything else, please post here.

Thanks!
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:OB**************@TK2MSFTNGP09.phx.gbl...
Hi,

http://www.vb-helper.com/howto_net_save_form_image.html

Ken
-----------------
"gregory_may" <None> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
I am looking for a better way to compress screen shot data.

Currently this line of code:
MyBitMapImage.Save(MyMemoryStream,
System.Drawing.Imaging.ImageFormat.Jpeg)

Takes between 70-90 Milliseconds, If I use ImageFormat.PNG, it takes
between
50-350 Milliseconds!!!

Can anyone recommend a faster way to compress a .Net BitMap? I have seen
several libraries here:

http://datacompression.info/SourceCode.shtml

Also, I have seen that Intel has the IPP here (but this looks cool, but
like
a steep learning curve):

http://www.intel.com/software/products/ipp/
Before I dive into the depths of a new library, I was wondering if anyone
has a recommendation?


Nov 21 '05 #3

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: Jean-Marc Blaise | last post by:
Hi, I get a SQL2009C when using the 'compress' option for backup, but the util_heap_sz does not blow if I do not use the 'compress' option. What is the overhead induced by the compress option in...
5
by: Jigar Mehta | last post by:
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...
3
by: Arjen | last post by:
Hello, I have some big-size images in al kind of filetypes (*.gif, *.jpg, *.png, etc. ) that I like to resize. And if posible I also like to compress these images. Do you know a good thumnail...
5
by: Oenone | last post by:
This may be a bit of a long shot... I've been working with the excellent new ReportView libraries in VS2005. Until this afternoon I've been extremely happy with everything I've seen them do....
3
by: dust | last post by:
I need to improve the download speed for an asp.net 2.0 application. So I'd like to compress the dimension of the .aspx pages. These pages don't have any images or heavy element. The most long...
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.