technology

what is gif, jpeg, png (image) »definition and concept

The representation of images through computers requires two basic elements: the hardware adequate, and the software suitable.

The first has been something trivial for many years, and the second too, but the latter still holds something a bit confusing for users: there are different ways to save images, different formats known by their acronyms that have become famous: JPEG, GIF, PNG or RAW among others.

Higher fidelity, less space

An image format (which can be a photograph or a drawing) consists of a certain way of saving the information that corresponds to the image and allows it to be generated, so that it occupies as little space as possible and is as faithful as possible to reality. .

If computers today have gigabytes of hard drives and other storage media, and Internet connections are so fast that we can watch movies directly online without having to download them, why do we need to reduce the size of the images?

Fruit of a historical necessity

The answer to this question is simple: things have not always been this way. There was a time, not that long ago, in which a computer with a 20 megabyte hard drive (yes, you read that correctly, not gigabytes, if not megabytes) was considered one of the most storage available, and its price did not it was available to everyone.

Nor did Internet connections start out as fast as fiber optic cable, and the first ones that we could enjoy at home took a few seconds to download a very simple web page.

It is in this framework in which, and to facilitate their exchange / transfer and storage, image formats are born.

Based on mathematical algorithms

The key to any graphic format is based on a mathematical algorithm. Instead of saving the information about each color point, what is done is to group areas in which all the points have the same color and tone and, from here, a formula is developed to reproduce that area.

What is stored is the mathematical information, whose volume is considerably lower than that of saving the information of each pixel (point) that makes up the image individually, an especially interesting saving the larger the image (higher resolution).

Image formats with specific functionalities

Throughout these years, new algorithms have been created and existing ones have been improved. There are many image formats, and some offer particular features that make them very useful for certain tasks.

This is the case of PNG, born for the web, or GIF, which allows you to save an animation (like a short movie of one or two seconds) in a single file.

It is still curious that, many years later, Apple has launched the Live Photos format which, precisely, consists of a small video of a few seconds, but which is stored as an image file. An idea similar to the GIF but improved.

Jpeg

The "star" of compression formats for its wide diffusion and use in all kinds of devices and applications. It is the format that, by default, mobile phones and home cameras use to capture images, and that reproduces any electronic device capable of displaying images such as a television, tablet or computer.

Created by the Joint Photographic Experts Group, a group of photography experts, it uses a lossy compression algorithm, by which it greatly reduces the size of the resulting file, but paying the price of losing some information in the resulting image.

This information is barely perceptible globally by the observer, which compensates for this loss.

PNG

Born as an alternative to the GIF format for use on the Internet, it allows (like that one) to define transparent areas of the image, with which and by superimposing them on a colored background, these areas will reveal the color underneath.

It also exceeds the 256-color limit of the GIF image and supports interlaced images, so that we begin to see the image rendered in parts and we can get an idea of ​​the whole before it has finished loading, something that others do not support. formats.

GIF

Created by CompuServe, it uses the highly efficient LZW algorithm. However, it has a problem: it works for 256-color images (and it works really well), but for those images in which we want to show a greater range of colors, it is not ideal.

Widely used in the early days of the great expansion of the Internet thanks to the fact that it allowed to create very light images, it then fell almost into oblivion to begin to come back with force thanks to the memes due to another of its characteristics: the possibility of containing animations.

Added in the GIF89a specification (after the birth of the original format), it is nothing more than the possibility of having several images within a single file, each one being as a frame of a small movie and giving them a drawing time between each one.

The end result is something very similar to a movement.

BMP

Who remembers this? Created by Microsoft and popularized by its vector drawing programs, it was used by many operating systems in their icons.

Already surpassed by other alternatives, it has been quite forgotten in its uses for the end user. One of its disadvantages is that it does not use compression, so the size of the images generated is larger than with other alternatives.

RAW

This I have left for the end because it contradicts a bit everything explained so far; Let me explain: it contains the maximum information about each point of the image, with lossless compression of the information.

It is the one commonly used by professional photographers, since it offers unparalleled quality, since the other formats that compress with some loss of information, always slightly degrade the image.

This quality comes at a price: the large size they occupy on disk. Professional photographers typically have a large amount of storage in their facilities.

Photos: iStock - Kristtaps / LaraBelova

$config[zx-auto] not found$config[zx-overlay] not found