Information technology — Digital compression and coding of continuous-tone still images: JPEG File Interchange Format (JFIF) — Part 5:

ISO/IEC 10918-5:2013 specifies the JPEG File Interchange Format (JFIF).

Technologies de l'information — Compression numérique et codage des images fixes à modelé continu: Format d'échange de fichiers JPEG (JFIF) — Partie 5:

General Information

Status
Published
Publication Date
25-Apr-2013
Current Stage
9060 - Close of review
Completion Date
04-Mar-2029
Ref Project
Standard
ISO/IEC 10918-5:2013 - Information technology -- Digital compression and coding of continuous-tone still images: JPEG File Interchange Format (JFIF)
English language
9 pages
sale 15% off
Preview
sale 15% off
Preview

Standards Content (Sample)


INTERNATIONAL ISO/IEC
STANDARD 10918-5
First edition
2013-05-01
Information technology — Digital
compression and coding of continuous-
tone still images: JPEG File Interchange
Format (JFIF)
Technologies de l'information — Compression numérique et codage
des images fixes à modelé continu: Format d'échange de fichiers JPEG
(JFIF)
Reference number
©
ISO/IEC 2013
©  ISO/IEC 2013
All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized otherwise in any form or by any
means, electronic or mechanical, including photocopying, or posting on the internet or an intranet, without prior written permission.
Permission can be requested from either ISO at the address below or ISO’s member body in the country of the requester.
ISO copyright office
Case postale 56  CH-1211 Geneva 20
Tel. + 41 22 749 01 11
Fax + 41 22 749 09 47
E-mail copyright@iso.org
Web www.iso.org
Published in Switzerland
ii © ISO/IEC 2013 – All rights reserved

Foreword
ISO (the International Organization for Standardization) and IEC (the International Electrotechnical
Commission) form the specialized system for worldwide standardization. National bodies that are members of
ISO or IEC participate in the development of International Standards through technical committees
established by the respective organization to deal with particular fields of technical activity. ISO and IEC
technical committees collaborate in fields of mutual interest. Other international organizations, governmental
and non-governmental, in liaison with ISO and IEC, also take part in the work. In the field of information
technology, ISO and IEC have established a joint technical committee, ISO/IEC JTC 1.
International Standards are drafted in accordance with the rules given in the ISO/IEC Directives, Part 2.
The main task of the joint technical committee is to prepare International Standards. Draft International
Standards adopted by the joint technical committee are circulated to national bodies for voting. Publication as
an International Standard requires approval by at least 75 % of the national bodies casting a vote.
Attention is drawn to the possibility that some of the elements of this document may be the subject of patent
rights. ISO and IEC shall not be held responsible for identifying any or all such patent rights.
ISO/IEC 10918-5 was prepared by Joint Technical Committee ISO/IEC JTC 1, Information technology,
Subcommittee SC 29, Coding of audio, picture, multimedia and hypermedia information, in collaboration with
ITU-T. The identical text is published as Rec. ITU-T T.871 (05/2011).
ISO/IEC 10918 consists of the following parts, under the general title Information technology — Digital
compression and coding of continuous-tone still images:
 Part 1: Requirements and guidelines
 Part 2: Compliance testing
 Part 3: Extensions
 Part 4: Registration of JPEG profiles, SPIFF profiles, SPIFF tags, SPIFF colour spaces, APPn markers,
SPIFF compression types and Registration Authorities (REGAUT)
 Part 5: JPEG File Interchange Format (JFIF)
 Part 6: Application to printing systems

© ISO/IEC 2013 – All rights reserved iii

Table of Contents
Page
1 Scope . 1
2 Normative references. 1
2.1 Identical Recommendations | International Standards . 1

2.2 Paired Recommendations | International Standards equivalent in technical content . 1
2.3 Additional references . 1

3 Definitions . 1
4 Abbreviations . 1
5 Conformance . 2
6 JPEG File Interchange Format (JFIF) overview . 2
6.1 JPEG compression . 2
6.2 Colour space . 2
6.3 JFIF APP marker segment . 3
6.4 APP marker used to specify JFIF extensions . 3
6.5 Application marker segments used for application-specific information . 3
7 Conversion to and from RGB . 3
8 Image orientation . 4
9 Spatial relationship of components . 4
10 JPEG File Interchange Format (JFIF) specification . 6
10.1 JFIF file syntax . 6
10.2 JFIF extension APP marker segment . 7
10.3 JFIF extension: Thumbnail coded using JPEG encoding . 7
10.4 JFIF extension: Thumbnail stored using one byte per pixel . 8
10.5 JFIF extension: Thumbnail stored using three bytes per pixel . 8
Bibliography . 9

iv © ISO/IEC 2013 – All rights reserved

INTERNATIONAL STANDARD
RECOMMENDATION ITU-T
Information technology – Digital compression
and coding of continuous-tone still images:
JPEG File Interchange Format (JFIF)
1 Scope
This Recommendation | International Standard specifies the JPEG File Interchange Format (JFIF).
The JPEG File Interchange Format (JFIF) is a minimal file format which enables the exchange of JPEG encoded images
(according to Rec. ITU-T T.81 | ISO/IEC 10918-1) having 1 or 3 colour channels and 8 bits per colour channel between
a wide variety of platforms and applications. This minimal format does not include some advanced features found in
various other specified file formats. The purpose of this format is to provide for a basic form of exchange of JPEG
images. The optional inclusion of thumbnail images for rapid browsing is also supported.
2 Normative references
The following Recommendations and International Standards contain provisions which, through reference in this text,
constitute provisions of this Recommendation | International Standard. At the time of publication, the editions indicated
were valid. All Recommendations and Standards are subject to revision, and parties to agreements based on this
Recommendation | International Standard are encouraged to investigate the possibility of applying the most recent
edition of the Recommendations and Standards listed below. Members of IEC and ISO maintain registers of currently
valid International Standards. The Telecommunication Standardization Bureau of the ITU maintains a list of currently
valid ITU-T Recommendations.
2.1 Identical Recommendations | International Standards
– Recommendation ITU-T T.81 (1992) | ISO/IEC 10918-1:1994, Information technology – Digital
compression and coding of continuous-tone still images – Requirements and guidelines.
2.2 Paired Recommendations | International Standards equivalent in technical content
None.
2.3 Additional references
– Recommendation ITU-R BT.601-6 (2007), Studio encoding parameters of digital television for
standard 4:3 and wide screen 16:9 aspect ratios.
3 Definitions
For the purposes of this Recommendation | International Standard, the following definitions apply.
3.1 JPEG File Interchange Format (JFIF): The interchange format specified in this Recommendation |
International Standard for exchange of images encoded according to the JPEG standard (Rec. ITU-T T.81 |
ISO/IEC 10918-1) having 1 or 3 colour channels and 8 bits per colour channel.
3.2 thumbnail: Reduced resolution representation of the main JPEG (Rec. ITU-T T.81 | ISO/IEC 10918-1) coded
image that can be used to identify the image by its content.
NOTE – Thumbnails are commonly used to browse multiple images quickly using a low resolution visual representation of the
images, rather than using file names or other metadata.
4 Abbreviations
For the purposes of this Recommendation | International Standard, the following abbreviations apply.
Ap Byte i of application data
i
APP Application data marker, type 0
Rec. ITU-T T.871 (05/2011) 1
EOI End of Image
ICC International Color Consortium
JFIF JPEG File Interchange Format
JPEG Joint Photographic Experts Group
Lf  Length of frame header
Lp Length of application data segment
Nf Number of components in frame
RGB Red, Green, and Blue (colour component values)
SOF Start of Frame
SOI Start of Image
YC C Luminance (denoted as Y), Chrominance toward Blue, and Chrominance toward Red (colour
B R
component values)
5 Conformance
Some requirements in this Recommendation | International Standard are expressed as format or syntax requirements
rather than as software or hardware implementation requirements. Implementations fall into two categories: JFIF
decoders and JFIF encoders.
In order for a JFIF decoder to be considered conforming, the decoder shall not report errors when processing
conforming instances of the specified format, except when forced to do so by resource exhaustion or when the encoded
image data uses non-baseline features of Rec. ITU-T T.81 | ISO/IEC 10918-1 that are not supported by the decoder.
NOTE – The decoder should report errors when processing non-conforming deviations from the specified format.
In order for a JFIF encoder to be considered conforming, the files produced by the encoder shall be formatted as
specified.
6 JPEG File Interchange Format (JFIF) overview
6.1 JPEG compression
Any JPEG (Rec. ITU-T T.81 | ISO/IEC 10918-1) process is supported by the syntax of the JPEG File Interchange
Format (JFIF), provided the encoded image has 1 or 3 colour channels and 8 bits per colour channel.
NOTE 1 – It is strongly recommended that the JPEG baseline process, as defined in Rec. ITU-T T.81 | ISO/IEC 10918-1, be used
for the purposes of file interchange. This ensures maximum compatibility among applications supporting JPEG coded images.
Files conforming to the JPEG File Interchange Format shall conform to the interchange format specified in
Rec. ITU-T T.81 | ISO/IEC 10918-1. The encoded image in the JPEG File Interchange Format shall have 1 or 3 colour
channels and 8 bits per colour channel. Additionally, the JFIF APP marker (see 6.4) shall be present immediately
following the SOI marker (specified in Rec. ITU-T T.81 | ISO/IEC 10918-1).
NOTE 2 – The interchange format specified in Rec. ITU-T T.81 | ISO/IEC 10918-1 requires that all table specifications used in
the encoding process are coded in the image data prior to their use.
6.2 Colour space
The colour space to be used is YC C as defined by Rec. ITU-R BT.601 (256 levels) but with a different scaling as
B R
specified below. If only one component is used, that component shall be the Y component channel as specified below.
NOTE – The colour space specification herein can provide only a basic level of colour fidelity. The use of supplemental metadata
such as an ICC profile (e.g., as specified in ISO 15076-1) may be necessary to provide a more accurate colour characterization.
If three components are used, they shall be present in the image with the ordering of the components such that the first
component is the Y channel, the second component is the C channel, and the third component is the C channel.
B R
2 Rec. ITU-T T.871 (05/2011)
6.3 JFIF APP marker segment
The JFIF APP marker segment shall immediately follow the SOI marker. The JFIF APP marker segment is defined as
0 0
an APP marker (specified in Rec. ITU-T T.81 | ISO/IEC 10918-1) containing the null-terminated string: "JFIF"
encoded as specified in 10.1 in the first five application data bytes of the marker segment (Ap , for i = 1 to 5).
i
Additional APP marker segments may also be present, provided the associated application data bytes do not begin with
this string. The JFIF APP marker segment provides some information that is not contained in the JPEG
(Rec. ITU-T T.81 | ISO/IEC 10918-1) stream, such as: version number, horizontal and vertical pixel densities
(expressed in dots per inch or dots per cm), pixel aspect ratio (derived from the horizontal and vertical pixel densities),
and an optional thumbnail encoded as 24-bit RGB image data.
NOTE – The "JFIF" string as specified in 10.1 is encoded according to Rec. ITU-T T.50 | ISO 646.
6.4 APP marker used to specify JFIF extensions
Additional APP marker segment(s) can optionally be used for the JFIF extensions specified in clause 10. If used, these
segment(s) must immediately follow the JFIF APP marker segment. Decoders shall skip any unsuppo
...

Questions, Comments and Discussion

Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.