Exif

Last updated
Exif
Epepeotes uncinatus @ Kanjirappally Exif 02.png
Exif of a file in Wikimedia Commons (compact form)
Filename extension
.JPG, .TIF, .WAV, .PNG, [1] .WEBP [2]
Developed by JEIDA, now JEITA, CIPA
Initial release1995;29 years ago (1995) [3]
Latest release
3.0 [4]
May 2023;11 months ago (2023-05) [4]
Extended from TIFF, JPEG, WAV
Extended to DCF

Exchangeable image file format (officially Exif, according to JEIDA/JEITA/CIPA specifications) [5] is a standard that specifies formats for images, sound, and ancillary tags used by digital cameras (including smartphones), scanners and other systems handling image and sound files recorded by digital cameras. The specification uses the following existing encoding formats with the addition of specific metadata tags: JPEG lossy coding for compressed image files, TIFF Rev. 6.0 (RGB or YCbCr) for uncompressed image files, and RIFF WAV for audio files (linear PCM or ITU-T G.711 μ-law PCM for uncompressed audio data, and IMA-ADPCM for compressed audio data). [6] It does not support JPEG 2000 or GIF encoded images.

Contents

This standard consists of the Exif image file specification and the Exif audio file specification.

Background

Exif is supported by almost all camera manufacturers.

The metadata tags defined in the Exif standard cover a broad spectrum:

Version history

The Japan Electronic Industries Development Association (JEIDA) produced the initial definition of Exif. Version 2.1 of the specification is dated 12 June 1998.[ citation needed ] JEITA established Exif version 2.2 (a.k.a. "Exif Print"), dated 20 February 2002 and released in April 2002. [7] Version 2.21 (with Adobe RGB support) is dated 11 July 2003, but was released in September 2003 following the release of DCF 2.0. Version 2.3 was released on 26 April 2010, and revised to 2.31 in July 2013 and revised to 2.32 on 17 May 2019, was jointly formulated by JEITA and CIPA. The latest version, 3.0, was released in May 2023, and brings, among other things, support for UTF-8 to allow text data in non-ASCII encoding. [4]

Versions
VersionRelease DateChanges
1.0October 1995Removed dependencies to io package
1.1May 1997
2.0November 1997Licence change to MIT licence
2.1December 1998
2.2April 2002Added HEIC support
2.21September 2003Addition of "Exif Print"
2.21 (unified version)September 2009
2.3April 2010
2.3 (revised)December 2012
2.31July 2016
2.32May 2019
3.0May 2023UTF-8 data type

Technical

The Exif tag structure is borrowed from TIFF files. On several image specific properties, there is a large overlap between the tags defined in the TIFF, Exif, TIFF/EP, and DCF standards. For descriptive metadata, there is an overlap between Exif, IPTC Information Interchange Model and XMP info, which also can be embedded in a JPEG file. The Metadata Working Group has guidelines on mapping tags between these standards. [8]

When Exif is employed for JPEG files, the Exif data are stored in one of JPEG's defined utility Application Segments, the APP1 (segment marker 0xFFE1), which in effect holds an entire TIFF file within. When Exif is employed in TIFF files (also when used as "an embedded TIFF file" mentioned earlier), the TIFF Private Tag 0x8769 defines a sub-Image File Directory (IFD) that holds the Exif specified TIFF Tags. In addition, Exif also defines a Global Positioning System sub-IFD using the TIFF Private Tag 0x8825, holding location information, and an "Interoperability IFD" specified within the Exif sub-IFD, using the Exif tag 0xA005.

Formats specified in Exif standard are defined as folder structures that are based on Exif-JPEG and recording formats for memory. When these formats are used as Exif/DCF files together with the DCF specification (for better interoperability among devices of different types), their scope shall cover devices, recording media, and application software that handle them.

Geolocation

The Exif format has standard tags for location information. As of 2014, many cameras and mobile phones have a built-in GPS receiver that stores the location information in the Exif header when a picture is taken. Some other cameras have a separate GPS receiver that fits into the flash connector or hot shoe. Recorded GPS data can also be added to any digital photograph on a computer, either by correlating the time stamps of the photographs with a GPS record from a hand-held GPS receiver or manually by using a map or mapping software. Some cameras can be paired with cellphones to provide the geolocation. The process of adding geographic information to a photograph is known as geotagging. Photo-sharing communities like Panoramio, locr or Flickr equally allow their users to upload geocoded pictures or to add geolocation information online.

Program support

Exif data are embedded within the image file itself. While many recent image manipulation programs recognize and preserve Exif data when writing to a modified image, this is not the case for most older programs. Many image gallery programs also recognise Exif data and optionally display it alongside the images.

Software libraries, such as libexif [9] for C and Adobe XMP Toolkit [10] or Exiv2 [11] for C++, Metadata Extractor [12] for Java, PIL/Pillow for Python, LEADTOOLS or ExifTool [13] for Perl, parse Exif data from files and read/write Exif tag values.

Problems

Technical

The Exif format has a number of drawbacks, mostly relating to its use of legacy file structures.

Privacy and security

Since the Exif tag contains metadata about the photo, it can pose a privacy problem. For example, a photo taken with a GPS-enabled camera can reveal the exact location and time it was taken, and the unique ID number of the device - this is all done by default - often without the user's knowledge. Many users may be unaware that their photos are tagged by default in this manner, or that specialist software may be required to remove the Exif tag before publishing. For example, a whistleblower, journalist or political dissident relying on the protection of anonymity to allow them to report malfeasance by a corporate entity, criminal, or government may therefore find their safety compromised by this default data collection.

In December 2012, anti-virus businessman John McAfee was arrested in Guatemala while fleeing from alleged persecution [22] in neighboring Belize. Vice magazine had published an exclusive interview on their website with McAfee "on the run" [23] that included a photo of McAfee with a Vice reporter taken with a phone that had geotagged the image. [24] The photo's metadata included GPS coordinates locating McAfee in Guatemala, and he was captured two days later. [25] McAfee later claimed to have edited the Exif data from his phone to provide a false location. [26]

According to documents leaked by Edward Snowden, the NSA is targeting Exif information under the XKeyscore program. [27]

The privacy problem of Exif data can be avoided by removing the Exif data using a metadata removal tool. [28]

Metadata Working Group was formed by a consortium of companies in 2006 (according to their web page) or 2007 (as stated in their own press release). Version 2.0 of the specification was released in November 2010, [8] giving recommendations concerning the use of Exif, IPTC and XMP metadata in images.

Extensible Metadata Platform (XMP) is an ISO standard, originally created by Adobe Systems Inc., for the creation, processing and interchange of standardized and custom metadata for digital documents and data sets. IPTC was developed in the early 1990s by the International Press Telecommunications Council (IPTC) to expedite the international exchange of news among newspapers and news agencies.

Exif Fields

Not all devices use every available metadata field in the Exif standard.

Example

DigiKam screenshot showing Exif data DigiKam EXIF information screenshot.png
DigiKam screenshot showing Exif data

The following table shows Exif metadata for a photo made with a typical digital camera. Authorship and copyright information is generally not provided in the camera's output, so it must be filled in during later stages of processing. Some programs, such as Canon's Digital Photo Professional, allow the name of the owner to be added to the camera itself.

TagValue
ManufacturerCASIO
ModelQV-4000
Orientation (rotation)top-left [8 possible values [29] ]
SoftwareVer1.01
Date and time2003:08:11 16:45:32
YCbCr positioningcentered
CompressionJPEG compression
X resolution72.00
Y resolution72.00
Resolution unitInch
Exposure time1/659 s
F-numberf/4.0
Exposure programNormal program
Exif versionExif version 2.1
Date and time (original)2003:08:11 16:45:32
Date and time (digitized)2003:08:11 16:45:32
Components configurationY Cb Cr –
Compressed bits per pixel4.01
Exposure bias0.0
Max. aperture value2.00
Metering modePattern
FlashFlash did not fire
Focal length20.1 mm
MakerNote432 bytes unknown data
FlashPix version FlashPix version 1.0
Color spacesRGB
Pixel X dimension2240
Pixel Y dimension1680
File sourceDSC
Interoperability indexR98
Interoperability version(null)

Time Tags

In addition to the basic date and time tags (DateTime, DateTimeOriginal, and DateTimeDigitized), there are three corresponding "subsecond" tags: SubsecTime, SubsecTimeOriginal, and SubsecTimeDigitized. The SubsecTime tag is defined in version 2.3 as "a tag used to record fractions of seconds for the DateTime tag;" [6] the SubsecTimeOriginal and SubsecTimeDigitized fields are defined similarly. The subsecond tags are of variable length, meaning manufacturers may choose the number of ASCII-encoded decimal digits to place in these tags. For DateTime = 2000:01:01 00:00:00, the actual time with various subsecond values would be:

The standard does not specify which particular event during the "taking" of a picture the time tags should describe. The standard is, in fact, ambiguous. The DateTimeOriginal tag is defined as "The date and time when the original image data was generated." For an exposure—say, 30 seconds—longer than the granularity of the timestamp (one second for the DateTimeOriginal tag), the tag's time could correspond to the beginning of the exposure, the end of the exposure, or some other time. This confusion is exacerbated for the subsecond tags, where the granularity (down to 1/10000th of a second in the examples in the standard) is shorter than many common exposure durations.

As noted above, tags to specify the previously-missing timezone information were added in Exif version 2.31. These are "OffsetTime", "OffsetTimeOriginal" and "OffsetTimeDigitized". They are formatted as seven ASCII characters (including the null terminator) denoting the hours and minutes of the offset, like +01:00 or -01:00. The offset is "from UTC (the time difference from Universal Coordinated Time including daylight saving time) of the time of" [6] the matching tag.

FlashPix extensions

The Exif specification also includes a description of FPXR (FlashPix-ready) information, which may be stored in APP2 of JPEG images using a structure similar to that of a FlashPix file. [30] These FlashPix extensions allow meta-information to be preserved when converting between FPXR JPEG images and FlashPix images. FPXR information may be found in images from some models of digital cameras by Kodak and Hewlett-Packard. [31] Below is an example of the FPXR information found in a JPEG image from a Kodak EasyShare V570 digital camera:

TagValue
Code page1200
Used extension numbers1
Extension nameScreen nail
Extension class ID10000230-6FC0-11D0-BD01-00609719A180
Extension persistenceInvalidated by modification
Extension create date2003:03:29 17:47:50
Extension modify date2003:03:29 17:47:50
Creating applicationPicoss
Extension descriptionPresized image for LCD
Storage-stream pathname/.Screen Nail_bd0100609719a180
Screen nail(124,498 bytes of data containing 640×480 JPEG preview image)

Exif audio files

The Exif specification describes the RIFF file format used for WAV audio files and defines a number of tags for storing meta-information such as artist, copyright, creation date, and more in these files. [32] The following table gives an example of Exif information found in a WAV file written by the Pentax Optio WP digital camera:

TagValue
EncodingMicrosoft PCM
Number of channels1
Sampling rate7872
Avg. bytes per second7872
Bits per sample8
Date created2005:08:08
Exif version0220
Related image fileIMGP1149.JPG
Time created16:23:35
MakePENTAX Corporation
ModelPENTAX Optio WP
MakerNote(2064 bytes of data)

MakerNote data

The "MakerNote" tag contains image information normally in a proprietary binary format. Some of these manufacturer-specific formats have been decoded:

The proprietary formats used by many manufacturers break if the MakerNote tag data is moved (i.e. by inserting or editing a tag that precedes it). The reason to edit to the Exif data could be as simple as to add copyright information, an Exif comment, etc. There are two solutions for this problem:

Microsoft has implemented the last solution in Windows 10: In the Windows explorer you can change the Exif data of an image file by the properties window. Here the tab sheet "Details" contains some Exif data like title, subject, comments etc. and these Exif data can also be changed and stored. When the image file is saved the tag "OffsetSchema" (tag ID = 0xea1d) is added and this tag contains a signed 32 bit number. With this number the original index of "MakerNote" can be restored:

Original index of "MakerNote" = Current index of "MakerNote" - Value of tag "OffsetSchema"

But the tag "OffsetSchema" was defined by Microsoft and it is not part of the official Exif standard.

In some cases, camera vendors also store important information only in proprietary makernote fields, instead of using available Exif standard tags. An example for this is Nikon's ISO speed settings tag. [38]

See also

Related Research Articles

The JPEG File Interchange Format (JFIF) is an image file format standard published as ITU-T Recommendation T.871 and ISO/IEC 10918-5. It defines supplementary specifications for the container format that contains the image data encoded with the JPEG algorithm. The base specifications for a JPEG container format are defined in Annex B of the JPEG standard, known as JPEG Interchange Format (JIF). JFIF builds over JIF to solve some of JIF's limitations, including unnecessary complexity, component sample registration, resolution, aspect ratio, and color space. Because JFIF is not the original JPG standard, one might expect another MIME type. However, it is still registered as "image/jpeg".

Tag Image File Format or Tagged Image File Format, commonly known by the abbreviations TIFF or TIF, is an image file format for storing raster graphics images, popular among graphic artists, the publishing industry, and photographers. TIFF is widely supported by scanning, faxing, word processing, optical character recognition, image manipulation, desktop publishing, and page-layout applications. The format was created by the Aldus Corporation for use in desktop publishing. It published the latest version 6.0 in 1992, subsequently updated with an Adobe Systems copyright after the latter acquired Aldus in 1994. Several Aldus or Adobe technical notes have been published with minor extensions to the format, and several specifications have been based on TIFF 6.0, including TIFF/EP, TIFF/IT, TIFF-F and TIFF-FX.

Digital Negative (DNG) is an open, lossless raw image format developed by Adobe and used for digital photography. It was launched on September 27, 2004. The launch was accompanied by the first version of the DNG specification, plus various products, including a free-of-charge DNG converter utility. All Adobe photo manipulation software released since the launch supports DNG.

<span class="mw-page-title-main">Geotagged photograph</span> Photograph associated with a geographical location

A geotagged photograph is a photograph which is associated with a geographic position by geotagging. Usually this is done by assigning at least a latitude and longitude to the image, and optionally elevation, compass bearing and other fields may also be included.

The Extensible Metadata Platform (XMP) is an ISO standard, originally created by Adobe Systems Inc., for the creation, processing and interchange of standardized and custom metadata for digital documents and data sets.

An image file format is a file format for a digital image. There are many formats that can be used, such as JPEG, PNG, and GIF. Most formats up until 2022 were for storing 2D images, not 3D ones. The data stored in an image file format may be compressed or uncompressed. If the data is compressed, it may be done so using lossy compression or lossless compression. For graphic design applications, vector formats are often used. Some image file formats support transparency.

<span class="mw-page-title-main">XnView</span> Software for reading, viewing, and processing images

XnView is an image organizer and general-purpose file manager used for viewing, converting, organizing and editing raster images, as well as general purpose file management. It comes with built-in hex inspection, batch renaming, image scanning and screen capture tools. It is licensed as freeware for private, educational and non-profit uses. For other uses, it is licensed as commercial software.

Design rule for Camera File system (DCF) is a JEITA specification which defines a file system for digital cameras, including the directory structure, file naming method, character set, file format, and metadata format. It is currently the de facto industry standard for digital still cameras. The file format of DCF conforms to the Exif specification, but the DCF specification also allows use of any other file formats. As of 2021, the latest version of the standard was 2.0, issued in 2010.

A camera raw image file contains unprocessed or minimally processed data from the image sensor of either a digital camera, a motion picture film scanner, or other image scanner. Raw files are so named because they are not yet processed, and contain large amounts of potentially redundant data. Normally, the image is processed by a raw converter, in a wide-gamut internal color space where precise adjustments can be made before conversion to a viewable file format such as JPEG or PNG for storage, printing, or further manipulation. There are dozens of raw formats in use by different manufacturers of digital image capture equipment.

<span class="mw-page-title-main">Windows Photo Gallery</span> Discontinued image organizer, photo editor and photo sharing program

Windows Photo Gallery is a discontinued image organizer, photo editor and photo sharing program. It is a part of Microsoft's Windows Essentials software suite. The product has been unavailable for download since January 10, 2017, as the Windows Essentials line of products have been discontinued.

JPEG XR is an image compression standard for continuous tone photographic images, based on the HD Photo specifications that Microsoft originally developed and patented. It supports both lossy and lossless compression, and is the preferred image format for Ecma-388 Open XML Paper Specification documents.

Tag Image File Format/Electronic Photography (TIFF/EP) is a digital image file format standard – ISO 12234-2, titled "Electronic still-picture imaging – Removable memory – Part 2: TIFF/EP image data format". This is different from the Tag Image File Format, which is a standard administered by Adobe currently called "TIFF, Revision 6.0 Final – June 3, 1992".

Windows Imaging Component (WIC) is a COM-based imaging codec framework introduced in Windows Vista (and later available in Windows XP Service Pack 3) for working with and processing digital images and image metadata.

<span class="mw-page-title-main">FastPictureViewer</span>

FastPictureViewer is a freemium image viewer for Windows XP and later. Its aim is to facilitate quick review, rating and annotation of large quantities of digital images in the early steps of the digital workflow, with an emphasis on simplicity and speed. As an app with a freemium license, a basic version is available cost-free for personal, non-profit or educational uses, while a commercial license is required for the professional version with additional features. The basic version starts as a full version trial.

<span class="mw-page-title-main">ExifTool</span> Software

ExifTool is a free and open-source software program for reading, writing, and manipulating image, audio, video, and PDF metadata. It is platform independent, available as both a Perl library (Image::ExifTool) and command-line application. ExifTool is commonly incorporated into different types of digital workflows and supports many types of metadata including Exif, IPTC, XMP, JFIF, GeoTIFF, ICC Profile, Photoshop IRB, FlashPix, AFCP and ID3, as well as the manufacturer-specific metadata formats of many digital cameras.

The Information Interchange Model (IIM) is a file structure and set of metadata attributes that can be applied to text, images and other media types. It was developed in the early 1990s by the International Press Telecommunications Council (IPTC) to expedite the international exchange of news among newspapers and news agencies.

Sidecar files, also known as buddy files or connected files, are computer files that store data which is not supported by the format of a source file.

<span class="mw-page-title-main">RawTherapee</span> Raw photo processing software

RawTherapee is application software for processing photographs in raw image formats, as created by many digital cameras. It comprises a subset of image editing operations specifically aimed at non-destructive post-production of raw photos and is primarily focused on improving a photographer's workflow by facilitating the handling of large numbers of images. It is notable for the advanced control it gives the user over the demosaicing and developing process. It is cross-platform, with versions for Microsoft Windows, macOS and Linux.

In digital photography, the Camera Image File Format (CIFF) file format is a raw image format designed by Canon, and also used as a container format to store metadata in APP0 of JPEG images. Its specification was released on February 12, 1997.

<span class="mw-page-title-main">Extensible Device Metadata</span>

The Extensible Device Metadata (XDM) specification is an open file format for embedding device-related metadata in JPEG and other common image files without breaking compatibility with ordinary image viewers. The metadata types include: depth map, camera pose, point cloud, lens model, image reliability data, and identifying info about the hardware components. This metadata can be used, for instance, to create depth effects such as a bokeh filter, recreate the exact location and position of the camera when the picture was taken, or create 3D data models of environments or objects.

References

  1. "Extensions to the PNG 1.2 Specification, Version 1.5.0". ftp-osl.osuosl.org. Retrieved 4 March 2021.
  2. "The Metadata in WEBP (.webp) files". dev.exiv2.org. Retrieved 16 Feb 2022.
  3. "Exif Exchangeable Image File Format, Version 2.2,Sustainability of Digital Formats: Planning for Library of Congress Collections". Library of Congress . 26 February 2014. Retrieved 2020-08-18.
  4. 1 2 3 "Exif 3.0 released, featuring UTF-8 support". IPTC. 1 June 2023.
  5. "Exif2-1.PDF" (PDF). Archived from the original (PDF) on 2013-11-11.
  6. 1 2 3 "Standard of the Camera & Imaging Products Association, CIPA DC-008-Translation-2012, Exchangeable image file format for digital still cameras: Exif Version 2.3" (PDF). Retrieved 2014-04-08.
  7. Technical Standardization Committee on AV & IT Storage Systems and Equipment (April 2002). "Exchangeable Image File Format for Digital Still Cameras" (PDF). Version 2.2. Japan Electronics and Information Technology Industries Association. JEITA CP-3451. Retrieved 2008-01-28.
  8. 1 2 "Guidelines for Handling Image Metadata" (PDF). Metadata Working group. 2010-11-01. Archived from the original (PDF) on 2012-01-31. Retrieved 2015-05-11.
  9. "The libexif C EXIF library" . Retrieved 2022-07-06.
  10. "Adobe XMP Toolkit SDK". Adobe Inc.
  11. "Exiv2 Image Metadata Library". Andreas Huggel. Archived from the original on 2012-02-12. Retrieved 2009-02-12.
  12. "Metadata Extractor". Drew Noakes. Retrieved 2011-02-18.
  13. "Image::ExifTool Perl library". Phil Harvey. Retrieved 2009-02-12.
  14. "TIFF Revision 6.0" (PDF). Adobe. 1992-06-03. Archived from the original (PDF) on 2012-07-03. Retrieved 2009-04-07.
  15. "Nikon Tags: Nikon LensData01 Tags". Phil Harvey. 2008-01-25. Retrieved 2008-01-28.
  16. Maximillian Dornseif (2004-12-17). "EXIF Thumbnail in JPEG images". disLEXia 3000 blog. Archived from the original on September 28, 2007. Retrieved 2008-01-28.
  17. "Multi-Picture Format" (PDF). CIPA. 2009-02-04. Archived from the original (PDF) on 2016-04-05. Retrieved 2014-04-29.
  18. "Geotagging with ExifTool". www.sno.phy.queensu.ca. Retrieved 2019-10-06.
  19. "CIPA DC-008-Translation-2019 Exchangeable image file format for digital still cameras: Exif Version 2.32" (PDF). Retrieved August 3, 2021.
  20. "TIFF Tags". Library of Congress . Retrieved August 3, 2021.
  21. Weistra, Riny. "Dpi, misunderstandings and explanation, what is dpi" . Retrieved August 3, 2021.
  22. "McAfee wins stay of deportation from Guatemala". CNN. 7 December 2012. Retrieved 2012-12-26.
  23. We Are with John McAfee Right Now, Suckers, Vice, December 3, 2012, retrieved 7 December 2012
  24. Alex Wilhelm (December 3, 2012), Vice leaves metadata in photo of John McAfee, pinpointing him to a location in Guatemala, The Next Web, retrieved 7 December 2012
  25. "John McAfee arrested in Guatemala for illegal entry", CBS News , December 5, 2012, retrieved 7 December 2012
  26. Alex Wilhelm (3 December 2012). "In fresh twist, John McAfee now claims he falsified the metadata of the photo that placed him in Guatemala". The Next Web. Retrieved 5 November 2018.
  27. Staff (July 31, 2013). "XKeyscore Presentation from 2008 – Read in Full – Training Materials for the XKeyscore Program Detail How Analysts Can Use It and Other Systems to Mine Enormous Agency Databases and Develop Intelligence from the Web – Revealed: NSA Program That Collects 'Nearly Everything a User Does on the Internet'". The Guardian . Retrieved August 6, 2013.
  28. Hassan, Nihad, and Hijazi, Rami. Digital Privacy and Security Using Windows: A Practical Guide. Apress, 2017, pp. 57-59.
  29. "JPEG Rotation and EXIF Orientation / Digital Cameras with Orientation Sensors etc". Impulseadventure.com. Retrieved 2012-12-26.
  30. (JEITA CP-3451) Section 4.7.2: Interoperability Structure of APP2 in Compressed Data.
  31. Phil Harvey (18 March 2011). "FlashPix Tags" . Retrieved 29 March 2011.
  32. (JEITA CP-3451) Section 5: Exif Audio File Specification.
  33. Evan Hunter. "EXIF Makernotes - Reference Information". OZHiker. Retrieved 2008-01-29.
  34. "Exif MakerNote 解析カイセキ情報" (in Japanese). Kamisaka. Archived from the original on 2008-12-06. Retrieved 2008-01-29.
  35. "SIGMA and FOVEON EXIF MakerNote Documentation". x3f.info. Archived from the original on 2007-08-05. Retrieved 2008-03-26.
  36. "Makernote Types". exiftool.org.
  37. "Olympus Makernotes" (in German). Olypedia. Archived from the original on 2008-01-19. Retrieved 2008-01-29.
  38. Huggel, Andreas (2012-04-25). "Makernote formats and specifications" . Retrieved 2012-09-09.