Details of the Gif file format which are 8-bit images developed by Compuserve and are of two types, gif87a and gif89a.
gif file format, compuserve gifs, 8-bit gifs, types of gifs, gif87a, gif89a
Gif File format - Compuserve GifsGo to Gif File format - Compuserve GifsGIFsGo to Gif web imagesWeb Graphics DesignGo to Web Graphics DesignHomepage

Gif File format - Compuserve Gifs

The GIF file format was developed by Compuserve and is sometimes still refered to as Compuserve Gif. It uses the LZW (Limpel-Ziv and Welch) compression algorithm for 8-bit color images. It is the only image format supported by all graphical web browsers - even the very first ones.

What is 8-bit color?

8-bit (28 = 256) color depth refers to the number of colors in an image. Thus, gifs can have upto 8-bit or 256 colors. Decreasing the number of colors in a gif image decreases its file size. For example, take a look at the two images below. The first image contains 72 colors and the second one only 16 images. Now compare their file sizes - The image with more number of colors is larger in file size.

8 bit Gif image containing 72 colors
File size: 1755 bytes

8 bit Gif image containing only 16 colors
File size: 746 bytes

Though visually the two images might not seem very different, the image with the larger file size uses 72 different color pixels while the other uses only 16 different color pixels.
Decreasing the number of colors in a gif image, especially one that has to be used on the web, is always a good idea because smaller file sizes result in quicker downloads. However, it might also result in dithered and/or 'blocky' images. Below are three images - the first one containing only 4 colors, the second with 8 colors while the third contains pixels of 32 different colors. As you have learnt above, Gif images that use more colors are larger in file size and this is proved once again by the images below. Any way, what I wanted to point out was that as you decrease the number of colors in an image, the image becomes "blocky" and you can see that in the image with 4 color pixels. Note the edges of the green round circle in this image; they appear more jagged than the other two.

Gif image with pixels of 4 colors
636 bytes
Gif image with pixels of 8 colors
735 bytes
Gif image with pixels of 32 colors
1644 bytes

Types of Gifs

There are two varieties of Gifs:

  • Gif87a: This is the original gif file format. It provides interlacing feature to gifs.
  • Gif89a: Developed later, the Gif89a added two more features, Animation and Transparency.

AddThis Social Bookmark Button
Page contents: The starting article in the Gif file format section on WebDevelopersNotes.com. The Gif file format was developed by Compuserve and are 8-bit images of two main types, gif87a and gif89a.

Page URL: http://www.webdevelopersnotes.com/graphics/ gif_file_format.php3



Join Mailing List


Feedback/Questions




50+ web hosting FAQs

Search engine for your website

Free software from Google - The Google Pack Collection

Create your own search engine
Search WebDevelopersNotes.com