personal journals

JPG Compression

“I’ve heard a lot of confusing stuff about JPGs. Some people tell me they’re perfect for online photography, and other people warn me that when I convert my pictures to JPG, I’m going to throw away most of the quality of my picture!  I don’t want to ruin my pictures, so should I be using JPG?”

There’s a grain of truth in both sides of this question, actually.  Yes, JPG Compression does throw out information in your picture.  The good news is, most of the time, you’re not going to be able to tell the difference.

JPG Compression works under the assumption that if two areas are almost exactly the same color, the average viewer is going to see them as the same color.  If the entire area can be saved as one color, that’s a lot less data to be stored in the file, and the compressed version becomes a lot smaller.  Smaller images are important for both emailing and loading web sites.

As an example, JPG compression might take a black shadow thrown against a very dark grey background, and remove the shadow, so that the entire area is roughly the same color.  This is over-simplifying, of course.  The end result is that fewer individual colors translate to a much smaller file.

The danger with JPG is when a picture is compressed multiple times.  One of the worst things you can do to a picture is to save it as JPG three or four times in a row, because each save will compound the quality lost.  Just like a fax that gets forwarded or a photocopy of a photocopy, the quality of the picture will suffer.  After a couple of rounds through the JPG program, it will be obvious where it decided to save space.  For this reason, when you’re editing your photos, always start with a lossless format (like PNG or TIFF), and don’t convert your image to JPG until the editing is done.

Author: startachim

Leave a Reply

Your email address will not be published. Required fields are marked *