Ever notice that a picture might end in .jpg or .gif? Well this tutorial explains the differences between the various image formats. Image file formats are standardized means of organizing and storing images.
There are hundreds of image file types, but I’m only going to go over the basics of the three most common ones. These include:
- JPEG (JPG)
- GIF
- PNG
JPEG (Joint Photographic Experts Group) is a compression method; JPEG-compressed images are usually stored in the JFIF (JPEG File Interchange Format) format. Nearly every digital camera can save images in the JPEG/JFIF format. It supports 8 bits per color (red, green, blue) for a 24-bit total and produces relatively small files. One problem with JPEG files is that the quality of the image is degraded when it’s repeatedly edited and saved!
GIF (Graphics Interchange Format) is limited to an 8-bit palette, or 256 colors. This factor makes it ideal for storing graphics with simple color schemes (e.g. logos, graphics, and cartoon-style images). It supports animation and is still widely used to provide image animation effects. It uses a lossless compression that is more effective when large areas have a single color, but ineffective for detailed images.
PNG (Portable Network Graphics) file format is the successor to the GIF file format. The PNG file format supports truecolor (16 million colors!). It’s perfect for images that have large, uniformly colored areas. The lossless PNG format is best suited for editing pictures.
Many older browsers don’t support the PNG file format, however, with Mozilla Firefox or Internet Explorer 7, all contemporary web browsers now support all common uses of the PNG format. Indexed-color, gray scale, and true color images are supported, plus an optional alpha channel. PNG is designed to work well in online viewing applications, and supports transparency!
Shortlist- The Good and Bad
JPEG:
- Good for:
- Photographs
- Screenshots
- Desktop backgrounds
- Bad for:
- Line art and text
- Comic strips
- Images with fine lines or sharp color contrast
GIF:
- Good for:
- Animations
- Widespread browser support
- Bad for:
- Large file sizes
- Limited to 256 colors (8 bit)
PNG:
- Good for:
- Text
- General web graphics, line art, comic-style drawings
- Accurate reproduction (24 bit PNG)
- Alpha channel support
- Non-animated images
- Bad for:
- Photos, in-game screenshots
- Disappointing browser support







