![]() |
| VERS STORY | STANDARD | COMPLIANCE | PROJECTS | DIGITAL ARCHIVE | TRAINING | TOOLKIT | PUBLICATIONS | ||
|
7.4 JPEG JPEG files are very widely used to represent continuous tone images (e.g. photographs and greyscale images) due to the excellent compression algorithm. JPEG images are particularly widespread on the internet. JPEG should not be used to compress images with sharp edges as the compression algorithm often results in compression artefacts (known as ‘ringing’). These artefacts take the form of fuzzy echo lines parallel to the sharp edge. A second compression artefact is that the picture is tiled with small rectangles that blur the fine detail of the image. These artefacts result from the compression algorithm. If these artefacts are not acceptable, TIFF or JPEG 2000 should be used. JPEG is defined by an international standard [ISO10918]. Note that identical standards (except for the identifier) are issued by ISO and the ITU. Technically, the JPEG standard supports both lossless and lossy compression. With lossless compression, when an image is compressed and then decompressed the resulting image is identical to the original image (i.e. no information is lost). With lossy compression, the uncompressed image will be different from the original image. In practice, almost no use is made of the lossless mode in JPEG and almost all JPEG images use lossy compression. (Note that there is also a JPEG Lossless standard (ISO 14495-1 or ITU-T T.87) which is a completely separate standard that is not supported by VERS.) The use of lossy compression is a contentious issue for long term preservation of images. Ideally, lossless compression should be used for archival master images. This is because:
In practice, it is possible to make too much of this argument for the following reasons:
For these reasons, we would strongly recommend for images:
The basic JPEG standard defines several profiles. All are accepted by VERS:
The JPEG standard defines an interchange format. This format specifies the bitstream used to encode an image. The ‘abbreviated format for compressed image data’ is not accepted as a long term preservation format by VERS. Images using this abbreviated format do not include some of the tables required to decompress the image (instead, it is assumed that they are built into the decoder). Consequently, this format is not appropriate for long term preservation. In practice, it is unlikely that any normal generated JPEG image would use this mode as it could not be decoded by all viewers. JFIF (JPEG File Interchange Format) [JFIF] defines a further profile of JPEG. This profile is not included in the international standard, but was defined by Eric Hamilton of C-Cube Microsystems. This profile is both a restriction and extension of the standard interchange format. Many, if not most, JPEG files are actually JFIF files. It strongly recommends use of the Baseline JPEG profile and a YCbCr colour space. It uses an application specific extension to include the version, units, X pixel density, Y pixel density, and a thumbnail. Standard decoders will be able to decompress JFIF files and will ignore the application specific extensions. If it desired to check if a particular file is JFIF encoded, the file should commence with the hex string ‘FF D8 FF E0 xx xx 9A 96 49 00’ (where the ‘xx’ may be any hex number). There are a number of other encodings of JPEG. These include SPIFF, EXIF, and JTIP. These have not been investigated due to their rarity and are not accepted as long term preservation formats for VERS. | |||||
![]() |
![]() |
|