Graphics Formats - JPG

JPEG (Joint Photographic Experts Group) is a very efficient, true-color, compressed image format. It uses lossy compression, which means that bits are removed from the image in order to save space. JPEG files support millions of colors (compared with the 256 for GIF).

JPEG

GIF

JPEG Format

GIF Format

A comparison of the JPG and GIF formats of exactly the same picture. As you can see, JPEG lost some clarity.

The JPG format is best for images with gradients, blends, and inconsistent color variations such as photographs or paintings.  Images which have well separated tones should be saved in the GIF or PNG format. For example, if you include text in your image, you will notice a definite fuzzing of the characters when you view it.

You have several options when optimizing JPG images. JPG is a lossy format (which means it throws away bits), so with each generation of the image you save you will loose information, and that will degrade the quality of the image.

Any good image editor (Photoshop, Paint Shop Pro and others) will allow you to specify a compression percentage when you save the file. Before you purchase a graphics editor make sure it has a preview pane on the save so you can see what the compressed image looks like when you save it. This is a lot easier than saving a copy, examining it, resaving it and so on.

JPEG supports a concept similar to interlacing in GIF which is called progressive JPEG. This simply means that a rough image is displayed initially, followed by more and more detail as additional bits of the image are received. This is good for displaying large images. Unfortunately, progressive JPEG is a relatively new standard and is not supported by all browsers.

Additional Information

Internet Tips Contents

404 Errors Advertising Autoresponse Awardmaster Basics Browsers Careers Chatting Disasters Domains Email Emoticons Ezines Free Stuff Fun Stuff FTP Graphics Homepages HTML Reference HTML Tutorial Interactive Legal Links Msg Boards Microsoft Money Multimedia Networks Newsgroups Newsletter Products RFC's Ringmaster Searches Security Sticky Sites Surfing TANSTAAFL Telnet Viral Webmaster Your System