Solved

What is the MAXIMUM POSSIBLE COMPRESSION?

Posted on 2006-06-28
3
256 Views
Last Modified: 2013-11-19
Most of the time, I use JPGs for images; but, occasionally (uisually with family images) I use very high resolution (600-1200).
Therefore, the files are usually pretty large when saved to TIFF (which I understand is the best format for saving images).
I also make JPG copies; but even they are very large.

I hope there is a very aggressive compression program and/or method to reduce the size of the images so that I can email them.

Thanks

GadgetDude

0
Comment
Question by:GadgetDude
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
JoseParrot earned 250 total points
ID: 17006148
Hi,

An uncompressed bitmap of a image with 32 bits per pixel has the highest size and no loss of quality. An image of 1000 x 1000 pixels waste as much as 32/8 x 1000 x 1000 bytes, or 4 million bytes, almost 4 MB.
BMP can be 24 bpp (bits per pixel), 8 bpp or monochromatic 8 bpp (256 gray levels from all wahite to all black) and has no compression and, of course, no loss.

GIF compression has a good compression algorithm, but uses only 8 bits, but has no loss in quality in its 8 bpp.

JPG has one of the highest compression algorithms, but at a price: the higher the compression, the lower the quality. That is, if the quality is set to 100%, compression is with no loss. If the quality is 80% there are losses of around 20%.
By "loss" we understand the number of pixels that are retrieved from the file with different color regarding the original image. Actually the quality is poor in JPG, but the loss is well distributed through the whole image and in most cases are more than acceptable, if the image has much details and colors which should not be exact to the observer. Example: if a tree image with 100 green levels is stored with half of this number, very few people will notice that and the quality, despite the 50% loss, is still acceptable. More noticiable loss is a color group of 5 or 6 green levels when reduced to a single color in squares of 4 or 5 pixles. Graphics images, like bar graphs, or geometric shapes are not suitable to JPG compression, as the losses are very noticiable. For these images, GIF, TIF or PNG are the best choice.

Conclusion: the highest agressive compression is a JPG with 10% quality. Not interesting... the file is very small but the image is absolutely unacceptable.

Solution: if the images aren't to be printed or their sizes can be small, use JPG 80% for photos and GIF for sharp geometric shapes. And, before send by email, make them 512 x 384 or even 320 x 200 that are good sizes ina screen. To reduce sizes with very few quality loss, use "half size" resizing command twice, set to no dithering and interpolation in the free tool IrfanView (http://www.irfanview.com).

Jose
0
 
LVL 19

Expert Comment

by:billmercer
ID: 17127721
The best compression methods for images are fractal compression, a method that involves creating a mixture of fractals that approximates the appearance of the original image, and wavelet compression, which involves converting the image data into a collection of mathematical formulas that can be used to regenerate the original pixels.

Both of these can produce better compression than JPEG under some conditions, but the hitch is, nobody actually USES these algorithms, except in some highly specialized applications, and the software to view them isn't free.

JPEG really is the best option for emailing photos. Follow Jose's suggestion, and reduce the resolution of your images.
Another option is to upload them to a web site and email links to the pictures instead of sending the actual images as attachments.


 



0
 
LVL 19

Expert Comment

by:billmercer
ID: 17127750
Whoops, I sort of misspoke. By "best compression method" I really meant "smallest compressed file," not that it's actually the best approach.

Fractal compression sucks in practice, because it's incredibly slow to compress, requires lots of fiddling about to get good results, and is patented out the wazoo so nobody can use it for free.

Wavelet compression is used in the JPEG 2000 specification.
  http://en.wikipedia.org/wiki/JPEG_2000
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
Learn the basics of inputting and editing your text components in Prezi. We will cover how to set styles, position, and group your text components. In your Prezi editor, click anywhere on the canvas to add text: A flashing cursor informs you that yo…
Learn how to download your full Prezi presentation for offline presenting. Prezi doesn’t have to be viewed and shared in a web browser, even with a free account you can download your full presentation to share with others. Be sure to download any vi…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now