The GIF image is a flawless copy of the original. Next, the image was saved as a GIF and as a JPG: GIF, 1.448 K This above original image is saved in the PNG lossless format. Use GIF when there are large areas of uniform color and the total number ofĬolors is smaller than 256. See the purple pixels that the GIF mixes in the face to try to get the correct average color in this region. The GIF file is 18 times the size of the JPG file, but the JPG still looks better. The JPG is on the left, and the GIF is on the right. In this image below, the file size of the JPG on the left is 18 times smaller than that of the GIF on the right.
Your browser must support PNG for you to view these images.įor an even more extreme example, here is a comparison between a more highly compressed JPG and the same GIF. Note: the composite image is saved in PNG format, which uses a lossless 24-bit compression algorithm.