Gif File format – Compuserve Gifs

Gif File format – Compuserve Gifs cover image
  1. Home
  2. Graphics
  3. Gif File format – Compuserve Gifs

The GIF file format was developed by Compuserve and is sometimes still referred 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.

Sponsored Links

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 colorsFile size: 1755 bytes

8 bit Gif image containing only 16 colorsFile 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 kinds of GIF images:

Graphics