[an error occurred while processing this directive] [an error occurred while processing this directive] Skip to the content of the web site.

5.3.2 Common Errors

We will discuss a number of common errors made by individuals unfamiliar with image formats, including:

Using PNG or GIF for Photographs

Using a PNG to store a photograph has only one significant disadvantage: significantly more memory is required; however, using a GIF will not only require more memory, it will also severely deteriorate the quality of the image.

Using JPEG for Graphics

A graphic usually consists of lines which, by themselves are high frequency: for example, in Figure 1, there is a very sharp transition from black to white.

Figure 1. A graphic saved as a PNG and a zoom on one section.

The Fourier coefficients of such an edge will decay very slowly, and as a consequence, if the higher coefficients are ignored, as is the strategy for JPEG, the result is the very poor approximation in Figure 2.

Figure 2. A graphic stored as a JPEG and a zoom on one section.

To visualize this effect, consider Figure 3 which contains a unit step function and a finite Fourier series approximation. There are two obvious features:

[an error occurred while processing this directive]