Overview
ISO/IEC 10918-5:2013 specifies the JPEG File Interchange Format (JFIF), a minimal, widely supported file format for exchanging JPEG-encoded still images. JFIF enables interoperable transfer of JPEG images that have 1 or 3 colour channels and 8 bits per channel, and supports optional embedded thumbnails for rapid browsing. The standard complements the JPEG coding rules in ISO/IEC 10918-1 / ITU‑T T.81 by defining file-level conventions needed for reliable interchange across platforms.
Key topics and technical requirements
- Mandatory JFIF APP marker: A JFIF APP0 marker segment must immediately follow the JPEG SOI (Start of Image) marker. This segment carries format metadata (version, pixel density, aspect ratio) and optional thumbnail data.
- Colour space and channel ordering: JFIF uses the YCbCr colour space (based on ITU‑R BT.601 scaling) for 3-component images; single-component images represent the Y (luminance) channel. Component order is Y, Cb, Cr.
- Thumbnails and extensions: Support for optional thumbnails (24-bit RGB or raw byte formats) and an extension APP segment identified by the "JFXX" string to carry JFIF extensions. Decoders must skip unsupported extension segments gracefully.
- RGB ↔ YCbCr conversion: The standard provides precise conversion equations (and clamping rules) between full‑scale 8‑bit RGB and YCbCr values to ensure consistent colour interpretation.
- Conformance rules: Implementations are categorized as JFIF encoders and decoders. A conforming decoder must process conforming JFIF instances without errors (except for resource exhaustion or unsupported non‑baseline JPEG features). A conforming encoder must produce files that follow the defined syntax.
- File syntax and markers: JFIF defines how application marker segments (APPn) are used, restrictions on application identifier strings, and the permitted placement of marker segments in the JPEG stream.
Applications and who uses it
- Software developers building image viewers, web browsers, photo management, or camera firmware rely on JFIF for simple, interoperable JPEG image exchange.
- Content platforms and middleware that need reliable thumbnail embedding, pixel density metadata (DPI/DPcm), or deterministic colour conversion between RGB and YCbCr.
- Tooling and libraries that implement JPEG encoding/decoding for cross‑platform interchange (where minimal, baseline compatibility is required).
Related standards
- ISO/IEC 10918-1 (JPEG requirements and guidelines / ITU‑T T.81)
- ISO/IEC 10918 (other parts: -2 compliance testing, -3 extensions, -4 registration, -6 printing)
- ITU‑T T.871 (identical text)
- ITU‑R BT.601 (studio encoding parameters)
- ISO 15076-1 (ICC profile reference for color management)
Keywords: ISO/IEC 10918-5:2013, JFIF, JPEG File Interchange Format, JPEG, YCbCr, RGB conversion, APP marker, thumbnail, SOI, JFXX, image interchange.