www.fgks.org   »   [go: up one dir, main page]

Exif: Difference between revisions

Content deleted Content added
don't sell my personal data and use necessarily cookies only
Tags: Reverted Mobile edit Mobile web edit
m Reverted 1 edit by Doorman137 (talk) to last revision by InternetArchiveBot
 
(44 intermediate revisions by 33 users not shown)
Line 4:
| screenshot = Epepeotes uncinatus @ Kanjirappally Exif 02.png
| caption = Exif of a file in [[Wikimedia Commons]] (compact form)
| extension = <code>.JPG</code>, <code>.TIF</code>, <code>.WAV</code>, <code>.PNG</code>,<ref name="Extensions to the PNG 1.2 Specification, Version 1.5.0">{{cite web |title=Extensions to the PNG 1.2 Specification, Version 1.5.0 |website=ftp-osl.osuosl.org |url=http://ftp-osl.osuosl.org/pub/libpng/documents/pngext-1.5.0.html#C.eXIf |access-date=4 March 2021}}</ref></code> .WEBP</code>.WEBP<ref name="The Metadata in WEBP (.webp) files">{{cite web |title= The Metadata in WEBP (.webp) files |website=dev.exiv2.org |url=https://dev.exiv2.org/projects/exiv2/wiki/The_Metadata_in_WEBP_files |access-date=16 Feb 2022}}</ref></code>
| owner = [[Japan Electronic Industries Development Association|JEIDA]], now [[Japan Electronics and Information Technology Industries Association|JEITA]], [[Camera & Imaging Products Association|CIPA]]
| released = {{start date and age|1995}}<ref>{{cite web |url=https://www.loc.gov/preservation/digital/formats/fdd/fdd000146.shtml |title=Exif Exchangeable Image File Format, Version 2.2,Sustainability of Digital Formats: Planning for Library of Congress Collections |website=[[Library of Congress]] |date=26 February 2014 |access-date=2020-08-18}}</ref>
| latest release version = 23.320<ref name="exif30-iptc" />
| latest release date = {{Start date and age|20102023|04|2605|df=yes}},<ref revisedname="exif30-iptc" {{Start date and age|2019|05||df=yes}}/>
| extended from = [[Tagged Image File Format|TIFF]], [[JPEG]], [[WAV]]
| extended to = [[Design rule for Camera File system|DCF]]
| standard =
}}
 
'''Exchangeable image file format''' (officially '''Exif''', according to JEIDA/JEITA/CIPA specifications)<ref>{{Cite web |title=Exif2-1.PDF |url=http://www.exif.org/Exif2-1.PDF |url-status=dead |archive-url=https://web.archive.org/web/20131111073619/http://www.exif.org/Exif2-1.PDF |archive-date=2013-11-11 |format=PDF}}</ref> is a standard that specifies [[file format|formats]] for [[image]]s, [[sound]], and ancillary tags used by [[digital camera]]s (including [[smartphone]]s), [[Image scanner|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 (computing)|metadata]] tags: [[JPEG]] lossy coding for compressed image files, [[Tagged Image File Format|TIFF]] Rev. 6.0 ([[RGB color model|RGB]] or [[YCbCr]]) for uncompressed image files, and [[Resource Interchange File Format|RIFF]] [[WAV]] for audio files (linear [[Pulse-code modulation|PCM]] or ITU-T [[G.711]] μ-law PCM for uncompressed audio data, and [[Interactive Multimedia Association|IMA]]-[[Adaptive differential pulse-code modulation|ADPCM]] for compressed audio data).<ref name="auto">{{cite web |url=http://www.cipa.jp/std/documents/e/DC-008-2012_E.pdf |title=Standard of the Camera & Imaging Products Association, CIPA DC-008-Translation-2012, Exchangeable image file format for digital still cameras: Exif Version 2.3 |access-date=2014-04-08 }}</ref> It does not support [[JPEG 2000]] or [[GIF]] encoded images don't use all this.
 
This standard consists of the Exif image file specification and the Exif audio file specification.
 
=={{anchor|1.0|1.1|2.0|R98|2.1|2.2|2.21|2.3|3.0}}Background==
Exif is supported by almost all camera manufacturers.
 
The metadata tags defined in the Exif standard cover a broad spectrum:
* Camera settings: This includes static information such as the camera model and make, and information that varies with each image such as orientation (rotation), [[aperture]], [[shutter speed]], [[focal length]], [[metering mode]], and [[ISO speed]] information.
* Image metrics: Pixel dimensions, resolution, colorspace, and filesize
* Date and time information., Digitaldigital cameras will record the current date and time and save this in the metadata.
* Location information
* A [[thumbnail]] for previewing the picture on the camera's LCD screen, in file managers, or in photo manipulation software.
* Descriptions
* Copyright information.
 
==Version history==
 
{{Expand section|with=changes|date=August 2020}}
The [[Japan Electronic Industries Development Association]] (JEIDA) produced the initial definition of Exif. Version 2.1 of the specification is dated 12<!-- To be checked: 1 or 12? --> June 1998.{{cn|date=February 2024}} [[Japan Electronics and Information Technology Industries Association|JEITA]] established Exif version 2.2 (a.k.a. "'''Exif Print'''"), dated 20 February 2002 and released in April 2002.<ref>{{cite web |author=Technical Standardization Committee on AV & IT Storage Systems and Equipment |title=Exchangeable Image File Format for Digital Still Cameras |id=JEITA CP-3451 |version=Version 2.2 |publisher=[[Japan Electronics and Information Technology Industries Association]] |url=http://www.exif.org/Exif2-2.PDF |date=April 2002 |access-date=2008-01-28 |archive-date=2017-12-24 |archive-url=https://web.archive.org/web/20171224163311/http://exif.org/Exif2-2.PDF |url-status=dead }}</ref> 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. The latest versionVersion 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 [[Japan Electronics and Information Technology Industries Association|JEITA]] and [[Camera & Imaging Products Association|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.<ref name="exif30-iptc">{{cite web|url=https://iptc.org/news/exif-3-0-released-featuring-utf-8-support/ |website=IPTC |title=Exif 3.0 released, featuring UTF-8 support |date=1 June 2023}}</ref>
 
{| class="wikitable"
Line 43:
|1.0
|October 1995
|Removed dependencies to io package
|
|-
|1.1
Line 51:
|2.0
|November 1997
|Licence change to MIT licence
|
|-
|2.1
Line 59:
|2.2
|April 2002
|Added [[High Efficiency Image File Format|HEIC]] support
|
|-
|2.21
Line 85:
|
|-
|3.0
|May 2023
|UTF-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 [[TaggedTag Image File Format|TIFF]], Exif, [[Tag Image File Format / Electronic Photography|TIFF/EP]], and [[Design rule for Camera File system|DCF]] standards. For descriptive metadata, there is an overlap between Exif, [[IPTC Information Interchange Model]] and [[Extensible Metadata Platform|XMP]] info, which also can be embedded in a JPEG file. [[Metadata Working Group|The Metadata Working Group]] has guidelines on mapping tags between these standards.<ref name="mwg_guidance"/>
 
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.
Line 102 ⟶ 105:
Exif data are embedded within the image file itself. While many recent [[Graphics software|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<ref>{{cite web | url=https://libexif.github.io/ | title=The libexif C EXIF library | access-date=2022-07-06 }}</ref> for [[C (programming language)|C]] and Adobe XMP Toolkit<ref>{{cite web | url=https://www.adobe.com/devnet/xmp.html | title=Adobe XMP Toolkit SDK | publisher= Adobe Inc. }}</ref> or Exiv2<ref>{{cite web | url=http://www.exiv2.org/ | title=Exiv2 Image Metadata Library | publisher=Andreas Huggel | access-date=2009-02-12 | archive-date=2012-02-12 | archive-url=https://web.archive.org/web/20120212032622/http://www.exiv2.org/ | url-status=dead }}</ref> for [[C++]], Metadata Extractor<ref>{{cite web | url=http://www.drewnoakes.com/code/exif/ | title=Metadata Extractor | publisher=Drew Noakes | access-date=2011-02-18 | archive-date=2007-09-27 | archive-url=https://web.archive.org/web/20070927201245/http://www.drewnoakes.com/code/exif/ | url-status=dead }}</ref> for [[Java (programming language)|Java]], [[Python Imaging Library|PIL/Pillow]] for [[Python (programming language)|Python]], [[LEADTOOLS]] or [[ExifTool]]<ref>{{cite web | url=http://owl.phy.queensu.ca/~phil/exiftool/ | title=Image::ExifTool Perl library | publisher=Phil Harvey | access-date=2009-02-12}}</ref> for [[Perl]], parse Exif data from files and read/write Exif tag values.
 
==Problems==
Line 109 ⟶ 112:
The Exif format has a number of drawbacks, mostly relating to its use of legacy file structures.
 
* The derivation of Exif from the TIFF file structure using offset pointers in the files means that data can be spread anywhere within a file, which means that software is likely to corrupt any pointers or corresponding data that it doesn'tdoes not decode/encode. For this reason most image editors damage or remove the Exif metadata to some extent upon saving.<ref>{{cite web | title=TIFF Revision 6.0 | url=http://partners.adobe.com/public/developer/en/tiff/TIFF6.pdf | publisher=Adobe | date=1992-06-03 | access-date=2009-04-07 | url-status=dead | archive-url=https://web.archive.org/web/20120703095221/http://partners.adobe.com/public/developer/en/tiff/TIFF6.pdf | archive-date=2012-07-03 }}</ref>
* The standard defines a MakerNote tag, which allows camera manufacturers to place any custom format metadata in the file. This is used increasingly by camera manufacturers to store camera settings not listed in the Exif standard, such as shooting modes, post-processing settings, serial number, focusing modes, etc. As the tag contents are proprietary and manufacturer-specific, it can be difficult to retrieve this information from an image or to properly preserve it when rewriting an image. Manufacturers can encrypt portions of the information; for example, some Nikon cameras encrypt the detailed lens data in the MakerNote data.<ref>{{cite web | title=Nikon Tags: Nikon LensData01 Tags | url=http://owl.phy.queensu.ca/~phil/exiftool/TagNames/Nikon.html#LensData01 | publisher=Phil Harvey | date=2008-01-25 | access-date=2008-01-28}}</ref>
* Exif is very often used in images created by scanners, but the standard makes no provisions for any scanner-specific information.{{citation needed|date=November 2014}}
Line 122 ⟶ 125:
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 [[Misfeasance|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<ref>{{cite web|url=http://www.cnn.com/2012/12/07/world/americas/guatemala-mcafee-asylum-rejected/index.html |title=McAfee wins stay of deportation from Guatemala |date=7 December 2012 |publisher=Cnn.comCNN |access-date=2012-12-26}}</ref> in neighboring [[Belize]]. ''[[Vice (magazine)|Vice]]'' magazine had published an exclusive interview on their website with McAfee "on the run"<ref>{{Citation |url=https://www.vice.com/read/we-are-with-john-mcafee-right-now-suckers |title=We Are with John McAfee Right Now, Suckers |publisher=[[Vice (magazine)|Vice]] |date=December 3, 2012 |access-date=7 December 2012}}</ref> that included a photo of McAfee with a ''Vice'' reporter taken with a phone that had geotagged the image.<ref>{{Citation |url=https://thenextweb.com/insider/2012/12/03/vice-leaves-metadata-in-photo-of-john-mcafee-pinpointing-him-to-a-location-in-guatemala/2012/ |title=Vice leaves metadata in photo of John McAfee, pinpointing him to a location in Guatemala |publisher=The Next Web |author=Alex Wilhelm|date=December 3, 2012 |access-date=7 December 2012}}</ref> The photo's metadata included GPS coordinates locating McAfee in Guatemala, and he was captured two days later.<ref>{{Citation |url=http://www.cbsnews.com/8301-202_162-57557443/john-mcafee-arrested-in-guatemala-for-illegal-entry/ |title=John McAfee arrested in Guatemala for illegal entry |work=[[CBS News]] |date=December 5, 2012 |access-date=7 December 2012}}</ref> McAfee later claimed to have edited the Exif data from his phone to provide a false location.<ref>{{cite web|url=https://thenextweb.com/insider/2012/12/03/it-gets-stranger-now-mcafee-claims-that-he-falsely-edited-the-metadata-on-the-photo-that-placed-him-in-guatemala/|title=In fresh twist, John McAfee now claims he falsified the metadata of the photo that placed him in Guatemala|author=Alex Wilhelm|date=3 December 2012|publisher=The Next Web|access-date=5 November 2018}}</ref>
 
According to documents leaked by [[Edward Snowden]], the [[NSA]] is targeting Exif information under the [[XKeyscore]] program.<ref name =Guardian2>{{cite news| author = Staff | title=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'|url=https://www.theguardian.com/world/interactive/2013/jul/31/nsa-xkeyscore-program-full-presentation|access-date= August 6, 2013|newspaper= [[The Guardian]] |date= July 31, 2013}}</ref>
 
The privacy problem of Exif data can be avoided by removing the Exif data using a [[metadata removal tool]].<ref>Hassan, Nihad, and Hijazi, Rami. [https://books.google.com/books?id=U-AqDwAAQBAJ&lpg=PA58&ots=4B1eKQe1p3&dq=exif%20romoval&pg=PA57#v=onepage&q&f=false Digital Privacy and Security Using Windows: A Practical Guide]. Apress, 2017, pp. 57-59.</ref>
 
==Related standards==
Line 134 ⟶ 137:
[[Extensible Metadata Platform]] (XMP) is an [[List of International Organization for Standardization standards|ISO standard]], originally created by [[ADBE|Adobe Systems Inc.]], for the creation, processing and interchange of standardized and custom metadata for digital documents and data sets. [[IPTC Information Interchange Model|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.
 
==ExampleExif Fields==
Not all devices use every available metadata field in the Exif standard.
 
===Example===
[[File:DigiKam EXIF information screenshot.png|thumb|right|[[DigiKam]] screenshot showing Exif data]]
The following table shows Exif datametadata for a photo made with a typical digital camera. Notice that authorshipAuthorship 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.
 
{| class="wikitable" style="margin:auto;"
Line 150 ⟶ 156:
|-
|Orientation (rotation)
|top-left [8 possible values<ref>{{cite web |url=httphttps://www.impulseadventure.com/photo/exif-orientation.html |title=JPEG Rotation and EXIF Orientation / Digital Cameras with Orientation Sensors etc |publisher=Impulseadventure.com |access-date=2012-12-26 |archive-date=2022-03-07 |archive-url=https://web.archive.org/web/20220307162505/https://www.impulseadventure.com/photo/exif-orientation.html |url-status=bot: unknown }}</ref>]
|-
|Software
Line 236 ⟶ 242:
|(null)
|}
 
===Time Tags===
In addition to the basic date and time tags (<code>DateTime</code>, <code>DateTimeOriginal</code>, and <code>DateTimeDigitized</code>), there are three corresponding "subsecond" tags: <code>SubsecTime</code>, <code>SubsecTimeOriginal</code>, and <code>SubsecTimeDigitized</code>. The <code>SubsecTime</code> tag is defined in version 2.3 as "a tag used to record fractions of seconds for the DateTime tag;"<ref name="auto"/> the <code>SubsecTimeOriginal</code> and <code>SubsecTimeDigitized</code> 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 <code>DateTime = 2000:01:01 00:00:00</code>, the actual time with various subsecond values would be:
* <code>SubsecTime = 2</code>: <code>2000:01:01 00:00:00.2</code>
* <code>SubsecTime = 23</code>: <code>2000:01:01 00:00:00.23</code>
* <code>SubsecTime = 234</code>: <code>2000:01:01 00:00:00.234</code>
* <code>SubsecTime = 2345</code>: <code>2000:01:01 00:00:00.2345</code>
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 <code>DateTimeOriginal</code> 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 <code>DateTimeOriginal</code> 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 <code>+01:00</code> or <code>-01:00</code>. The offset is "from UTC (the time difference from Universal Coordinated Time including daylight saving time) of the time of"<ref name="auto"/> the matching tag.
 
==FlashPix extensions==
Line 346 ⟶ 362:
 
==See also==
* [[APEX system]]
* [[Additive System of Photographic Exposure]] (APEX)
* [[Comparison of image viewers]] (Exif view/edit functions)
* [[Comparison of metadata editors]]
* [[Design rule for Camera File system]] (DCF)
* [[Digital photography]]
* [[eXtensible Metadata Platform]] (XMP)
* [[GeocodedGeotagged photophotograph]]
* [[Image file formatsformat]]
* [[IPTC Information Interchange Model]]
* [[JPEG File Interchange Format]]
Line 367 ⟶ 382:
 
* [https://cipa.jp/e/std/std-sec.html CIPA Standards - Camera & Imaging Products Association]
* [https://www.cipa.jp/std/documents/download_e.html?DC-008-Translation-2023-E Exif standard version 3.0]
* [https://www.cipa.jp/std/documents/e/DC-X008-Translation-2019-E.pdf Exif standard version 2.32 *New]
* [http://www.cipa.jp/std/documents/e/DC-008-2012_E.pdf Exif standard version 2.3]
* Exif standard version 2.2 as [http://www.digicamsoft.com/exif22/exif22/html/exif22_1.htm HTML]
* [https://www.loc.gov/preservation/digital/formats/fdd/fdd000146.shtml Exif Exchangeable Image File Format, Version 2.2]
* [https://web.archive.org/web/20131111073619/http://www.exif.org/Exif2-1.PDF Exif standard version 2.1]
* [http://www.awaresystems.be/imaging/tiff/tifftags/privateifd/exif.html Exif in the TIFF Tag Directory]
* [https://web.archive.org/web/20171124134612/http://www.metadataworkinggroup.org/ Metadata working group]