Image File Format Comparison: GIF vs JPG vs PNG vs TIFF vs BMP

Image File Format Comparison: GIF vs JPG vs PNG vs TIFF vs BMP
Page content

Deciding On One Image Format vs Another

We are all familiar with extensions like .jpg, .gif or .png. Saving a picture involves choosing one of the formats available in a long drop-down list. People usually go with the one that ‘rings a bell’. They choose jpeg because all the photos they know end in .jpg, even if they have no idea what jpeg is all about. In this article, we’ll have a closer look at the five most common image file formats, with their advantages and disadvantages. Using the right format for the right image can save you a lot of trouble.

What are Raster Formats?

All the formats discussed here belong to a bigger category called Raster formats. Also referred to as bitmaps, Raster formats stock the information in a grid of pixels where each pixel has a different color.

The easiest way is to think of pixels as little colored dots stacked together. Depending on the number of bits used for every pixel, the image can be richer or poorer in color. For instance, 8 bits per pixel can create an image with up to 256 colors. At 16 or 24 bits, a pixel can carry tens of millions of different colors. Not all the formats use the same number of bits.

JPG

JPEG is probably the most commonly used image format. Its name derives from the name of the people who developed the JPEG compression technique: the Joint Photographic Experts Group. Common file extensions associated with this format are .jpg, .jpeg. Jpeg is a good format for photographs because it offers a reasonable compromise between picture size and picture quality. However, images can lose their quality when repeatedly edited and saved in this format. It is not recommended for scanned documents or text that’s going to be used with OCR software because of the digital artifacts (unpleasant visual defects in an image).

GIF

GIF is the abbreviation for Graphics Interchange Format. The images saved in this format lose a lot of color information by being reduced to 256 colors (8 bits per pixel). That makes it not such a good format for photographs and large images but ideal for storing graphics with a limited number of colors such as clip art, simple drawings, logos, text, diagrams, icons, small images or pictures in greyscale. The great advantage of this format and what makes it so loved especially among the Internet users is the fact that it supports animation and transparency. That’s why it is still largely used on the world wide web to create special effects and give life to web pages.

PNG

PNG (Portable Network Graphics) was created as a free and better alternative to GIF. This format supports animation and transparency, too, but is no longer limited to 256 colors. It has the advantage of truecolor (16 million colors). It can be used for editing photographs, since it doesn’t lose quality through repeated savings like JPEG. However, JPEG is still preferred for transferring and distributing photos because of the reasonable file size. A disadvantage of PNG is that some of the Internet browsers do not support this format yet.

BMP

BMP, also called Windows bitmap, is a format specific to the Windows operating system. It can be used in various Window-based applications but its great disadvantage is the large file size, since it doesn’t use any compression. The 24 bits-per-pixel BMP files are great quality images but they take a lot of space.

TIFF

TIFF (Tagged Image File Format) is recognized after the extensions .tif or .tiff. It is recommended especially for text and black and white images. Though it is not widely supported by web browsers, it remains the standard format for printing, scanned documents and Optical Character Recognition, since it doesn’t have any of the JPG artifacts.