Image Formats – JPEG, PNG, GIF, TIFF
JPEG, PNG, GIF, TIFF, … there are so many image formats. But when is which image format suitable? You want to ensure the best possible picture quality on all channels and devices without compromising quality or loading time. What format should you use, for example, for a logo or print publication? What are the advantages and disadvantages of all these image formats? What is the difference between raster and vector graphics? We will answer all these questions in this article.
Comparison of the most important image formats
Below you will find our list of the 11 most popular image formats and their best use. But here is a short overview for those who are in a hurry.
Vector / Pixel | Compression | Pro | Contra | Application | |
---|---|---|---|---|---|
JPEG | Pixel | With loss | The JPEG image format is supported by all operating systems. It is one of the most widespread image formats. The image quality to file size ratio is good. | JPEG does not support transparency or animation. In addition, there may be a loss of quality after multiple storage. | Size and detail of images for sending, saving or uploading to websites |
GIF | Pixel | Without loss | The GIF format has a very small file size. It also supports animations. | There are better and newer image formats available today. Furthermore, only 256 colors are supported. | Websites, chats, buttons, navigation menus, icons and graphical texts |
PNG | Pixel | Without loss | The PNG format supports the alpha channel for transparency. This is newer and more modern than the GIF format. In addition, compared to other image formats, the image format does not discard information when saved again. | The biggest disadvantage is the file size. In comparison to the JPEG format this is huge. Moreover, the format is not supported everywhere. | Icons, transparent or semi-transparent areas in images or logos – this again especially for websites. |
TIFF | Pixel | Normally not compressed: without loss. But if compressed: with loss | No loss of quality because not compressed. High quality and accuracy. Channel transparency is also supported as well. | The format is not supported everywhere and it is not compatible with web browsers, which prevents it from being used on web pages. In addition, the file sizes are very large. | |
SVG | Vector | Without loss | The SVG format offers a very high quality. By using vectors there is no loss of quality after scaling or zooming. | Needs special software for editing or HTML knowledge. | Printing, logos and for websites. |
Lossy and lossless compression
Some properties of image formats with terms like “lossy and lossless compression” or “raster” and “vector” may sound unfamiliar to you. So the first thing we’ll do is explain to you what this is all about. Compressing files saves a lot of storage space and also makes it easier to share files. Which file compression you should use depends on whether you want to keep the original data of a file.
Lossy compression means that data is partially removed from the image or information about pixels is reduced. The colors are then recalculated by a mathematical formula. There may be a visible loss of quality. But often the image quality does not play a very big role – e.g. on social media, where the images are only flown over anyway.
Lossless compression maintains image quality while attempting to preserve the small file size. It groups all pixels into the same color category, which facilitates indexing, and often removes the meta data of an image.
So when do you need a lossy – and when a lossless compression?
If you don’t mind losing part of the quality of the file to save disk space, choose an image format with lossy compression. If saving disk space is not your priority and you want to keep your file in its original state, choose lossless compression.
Image formats with vectors and rasters
Image formats with raster
Raster images are composed of a series of pixels or individual blocks to create an image. JPEG, GIF and PNG are all image formats with raster image extensions. Due to their defined size, pixels have a fixed share of the image. If you now enlarge or distort an image, the pixels are stretched to fill the space. This distorts them, resulting in blurred or unsharp images.
To maintain pixel quality, you cannot resize raster images without affecting the resolution. It is therefore important to remember to save raster files exactly in the dimensions required for the application. Of course you can always save the image in a smaller size (but in the same image format) without quality loss. However, enlarging does not work without noticeable loss. I’m sure you’ve noticed that before.
Vector Image Formats
Vector images are much more flexible image formats. They are built from proportional shapes and not from pixels. EPS, AI and PDF are perfect for creating graphics that require frequent resizing. Your logo and brand graphics should have been created as a vector and you should always have a master file to hand. The true beauty of vectors lies in their ability to change size at will. As small as a stamp or big enough to fit on a house wall. Everything always in the same high quality.
If you’re not sure if you have a vector version of your logo, here’s a little trick for you: call the company that printed your business cards or the supplier who embroidered your logo on a shirt. They often still have a vector file of your logo that they can send you for your records.
High versus Low Resolution
Have you ever heard a designer talk about DPI or PPI? DPI stands for “dots per inch” and PPI means “pixels per inch”. These units of measurement are essential for determining whether the density of pixels in an image is appropriate for the application you are using. The most important thing to consider when determining the required DPI or PPI is whether you are using the image for print or web.
- Websites display images at 72 DPI, which is a low resolution, but images at that resolution look really sharp on the web.
- This is not the case with printing. For printing an image it is essential that it is not less than 300 DPI.
These specifications are essential, as the image formats can vary greatly in this respect.
Do not try to cheat the system. You can conjure up a lot in Photoshop or alternative image editing programs – but unfortunately creating pixels from the air is not one of them. Pulling an image from the web and trying to fit it to the dimensions of your print project just won’t work. You will end up with a pixelated image that appears stretched and distorted.
11 different image formats
Summary of the different image formats
There are many different image formats with different characteristics and optimal applications.
Here you have to distinguish between raster and vector image formats. Raster formats, in comparison to vector formats, cannot be resized losslessly.
The best known of the image formats is JPEG, also called JPG. It requires little storage space, but does not offer the best quality.