| Home | News | Tutorial | Documentation | JPEG-hul Module | Distribution | Community | Links |
The JPEG-hul module recognizes and validates the JPEG format.
The module is invoked by the:
command line option.jhove ... -m JPEG-hul ...
Formally, JPEG refers to a format for compressed images created by the Joint Photographic Experts Group and codified in ISO/IEC 10918-1 [JPEG]. In 1992 C-Cube Microsystems published a specification for an interchange file format called JFIF (JPEG File Interchange Format) that encapsulates the JPEG data stream [JFIF]. What most people refer to as "JPEG" files are more properly JFIF files. However, many existing "JPEG" files do in fact contain only the "raw" JPEG data stream.
The JPEG-hul module recognizes and validates the following public profiles:
The following criteria must be met by a JPEG object for JHOVE to consider it well-formed:
JHOVE uses the JPEG-LS algorithm for recognizing the end of a data stream, looking for a byte of 0xFF followed by a byte in the range 0X80 through 0XFE. The standard JPEG algorithm looks for a byte of 0XFF followed by any byte which is not 0 or 0xFF. Since all valid markers in existing versions of JPEG are in the range 0X80 through 0XFE, this algorithm works correctly for both JPEG and JPEG-LS.
The following criteria must be met by a JPEG file for JHOVE to consider it valid:
A file which consists of a JPEG data stream, but does not contain the required segments for a JFIF, SPIFF, Exif, JTIP, or JPEG-LS file is considered well-formed but not valid.
The MIME type is reported as: image/jpeg
In addition to the standard JHOVE representation information, the following JPEG-specific properties are reported:
The contents of the "Entries" list are TIFF IFD properties. The TIFF-HUL module must be present for Exif information to be extracted from a JPEG file.
Image technical properties are reported in terms of the NISO Z39.87 data dictionary.
ISO/IEC 10918-1 is a lossy image compression format [JPEG].
JFIF is the JPEG File Interchange Format [JFIF]. The JFIF profile is indicated by the presence of an APP0 marker segment with the identifier "JFXX" immediately following the SOI marker.
Exif 2.0, 2.1 (JEIDA-49-1998), and 2.2 (JEITA CP-3451) define camera-specific metadata [Exif 2.1, Exif 2.2]. The following tags are mandatory in the primary TIFF IFD:
The primary TIFF IFD is the first IFD in the file, whose offset is defined in the TIFF header. The optional thumbnail TIFF IFD is a subsequent IFD whose offset is defined following the primary TIFF IFD.
Tag Name and Number Value Note ImageWidth 256 If Compression (259) = 1 ImageLength 257 If Compression (259) = 1 BitsPerSample 258 8,8,8 If Compression (259) = 1 Compression 259 1 If primary TIFF IFD and JPEGInterchangeFormat (513) not defined 1 or 6 If thumbnail TIFF IFD PhotometricInterpretation 262 2 or 6 If Compression (259) = 1 StripOffsets 273 If Compression (259) = 1 SamplesPerPixel 277 3 If Compression (259) = 1 RowsPerStrip 278 If Compression (259) = 1 StripByteCounts 279 If Compression (259) = 1 XResolution 282 YResolution 283 ResolutionUnit 296 2 or 3 ExifIFD 34665 If primary TIFF IFD
The following tags are mandatory in the Exif IFD:
Tag Name and Number Value ExifVersion 36864 "0220" (Version 2.2)
"0210" (Version 2.1)
"0200" (Version 2.0)FlashpixVersion 40960 "0100" ColorSpace 40961 1 or 65535
SPIFF (ISO/IEC 10918-3) is the Still Picture Interchange File Format [SPIFF].
JTIP (ISO/IEC 10918-3) is the JPEG Tiled Image Pyramid format [JTIP].
JPEG-LS (ISO/IEC 14495) is a standard for lossless and near-lossless compression of images [JPEG-LS].
| Home | News | Tutorial | Documentation | JPEG-hul Module | Distribution | Community | Links |
For more information: jhove-support@hulmail.harvard.edu
Copyright 2004-2005 by JSTOR and the President and Fellows of Harvard College