Continued from previous post: GIF, JPEG, PNG? Short Answer
GIF files deserve more explanations than the other two formats, in case you wonder why we did not delved into more details on it in the previous post.
GIF colour palette
The most practically important feature of GIF format is that it stores images using no more than 256 different colours. The editor would analyse the image before saving it as a GIF file, and decide which 256 colours to keep in the file, and which colours to replace with one of those 256 colours. The the outcome usually is once of these:
- There were less than 256 colours in the image, and it is saved without any losses of data or quality
- Most of the space in the image is taken by only a few colours, and the rest of them are hidden in details, like edges of shapes. Some details would be lost, but you may not even notice it
- Many colours are spread over significant areas, and GIF format would severely distort the image
Let’s look at some examples. Continue reading