Selecting the Optimal Image File Format:
GIF vs. JPEG
|
It is vital that Web designers save images in the optimal formatthat format which will produce an image with maximum quality at the minimum file size. Saving an image in a non-optimal format can dramatically increase file size and download time, as well as significantly degrade quality.
|
|
Image format |
|
|
|---|---|---|
|
Acronym definition |
Graphics Interchange Format |
Joint Photographic Experts Group |
|
HTML suffix |
filename.GIF |
filename.JPG |
|
Compression method |
Lossless: Algorithm scans for blocks of color; no part of the image is eliminated |
Lossy: Algorithm uses contrast to eliminate detail |
|
Image characteristics optimally compressed |
Any image containing blocks of color, such as logos or cartoons |
Any image containing significant detail and/or color transitions, such as color photographs |
|
Transparency support (background color rendered invisible) |
Available; use GIF89a Photoshop plug-in, or PhotoGIF, available through BoxTop Software and other sources |
Unavailable, but rumored to be in development |
|
Interlacing support (image focuses during loading) |
Available; use GIF89a format in Photoshop |
Available; use ProJPEG, available through BoxTop Software and other sources |
|
Bit-Depth, number of colors |
up to 8-bit, or 256 colors |
24-bit, or millions of colors |
|
Example, Graphic Art |
|
|
|
Example, Photograph |
|
|
|
Most of the time, classifying the image according to the aspects presented in the above tableespecially the image characteristicswill result in optimal format choices and compression. Note that in certain instances, a photo or other image containing color gradiations that normally would be optimized in the JPEG format will need to be saved as a GIF file. One such example presents itself if the designer requires a transparent background, since transparency support is not yet available for JPEG files.
|
Copyright ©1996 by Bovine Design. All Rights Reserved.