Home / Graphics / 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.
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.
File size: 1755 bytes
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.
![]() 636 bytes |
![]() 735 bytes |
![]() 1644 bytes |
There are two kinds of GIF images:
How do I view a deleted web page?
Is there a way to view a deleted web page - one that is no longer available? Yes there is and the solution is quite simple. [more...]
In an attempt to tap the high-net-worth individuals, Nations Luxury Transportation, LLC, purchased PrivateJet.com domain name for $30.2 Million in February 2012. [more...]
We use cookies to give you the best possible website experience. By using WebDevelopersNotes.com, you agree to our Privacy Policy