Sophie

Sophie

distrib > * > 2010.0 > * > by-pkgid > b36c97ff723e66f0f38bce83645c99dc > files > 1874

exiv2-doc-0.18.2-1mdv2010.0.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!--*- sgml -*-->
<html>
<head>
  <title>Exiv2 - Exif and IPTC metadata library and tools</title>
  <meta name="Author" content="Andreas Huggel">
  <meta name="Description" content="Open source Exif and IPTC metadata library and tools with Exif MakerNote and read/write support">
  <meta name="Keywords" content="exif, iptc, metadata, makernote, manipulation, manipulate, read and write, write, change, update, jpeg, jpg, ifd, image file directory, thumbnail, thumbnails, tag, tags, canon, fujifilm, sigma/foveon, nikon, open source, opensource, huggel, andreas, andreas huggel">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <link type="text/css" rel="stylesheet" href="../include/default.css">
  <link type="text/css" rel="stylesheet" href="../include/sortabletable.css">
  <link type="text/css" rel="stylesheet" href="doxygen.css">
  <link href="tabs.css" rel="stylesheet" type="text/css">
  <script type="text/javascript" src="../include/sortabletable.js"></script>
  <script type="text/javascript">
  <!--
  var preload = new Array('../include/blank.png', 
                          '../include/ascending.png', 
                          '../include/descending.png');
  var loader = new Array();
  for(var i = 0; i < preload.length; i++) {
    loader[i] = new Image();
    loader[i].src = preload[i];
  }
  //-->
  </script>
</head>
<body>

<div id="content">

<!-- Main index from Doxygen 1.4.6 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li><a href="classes.html"><span>Classes</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
    <li><a href="examples.html"><span>Examples</span></a></li>
  </ul>
</div>


<h1>MakerNote Formats and Specifications</h1>

<p>
The Makernote is tag 0x927c in the Exif IFD. According to the 
<a title="The Exif 2.2 standard (PDF)" href="http://www.exif.org/Exif2-2.PDF">
Exif 2.2 standard</a>, the makernote is <i>"a tag for manufacturers of
Exif writers to record any desired information. The contents are up to
the manufacturer, but this tag should not be used for any other than
its intended purpose."</i></p> 

<p>Most vendors do not publish their makernote specifications. Most of the 
<a href="#R0">specifications available on the Internet</a> 
were reverse-engineered. Judging from the size of many makernote
fields, manufacturers store a lot of information there and from the
available specifications, some of this is certainly quite
interesting. For example, makernotes may contain information about the
lens used, contrast, saturation and sharpness settings, image quality
settings, etc. For some more advanced camera settings, the Exif
standard doesn't define a standard tag, so camera vendors have to
resort to using the makernote. Unfortunately, in some cases, camera
vendors store important information only in proprietary makernote
fields, instead of using available Exif standard tags. The most
infamous example for this is Nikon's ISO settings tag.</p>

<p>Most vendors write the makernote in TIFF format, i.e., in the same
format as the rest of the Exif information is encoded. This appears to
be a sensible thing at first glance. Unfortunately, in general it
means that <i>any</i> change of an Exif tag, which moves the
makernote field, will corrupt it. It is an inherent problem of the
TIFF format that a writer must know the format and all extensions
used, in order to be able to write changes correctly; unknown tags are
potentially corrupted when they are moved (rearranged). But since
makernotes are usually proprietary, Exif writers often don't know
these details. The reason to write to the Exif data could be as simple
as to add copyright information, an Exif comment, etc. Some camera
manufacturers seem to have recognized this problem and now use a
modified TIFF format with offsets relative to somewhere at the
beginning of the makernote field for the makernote IFD to address the
issue.</p>

<p>The following table summarizes the structures of the makernote
field used by some vendors.  Please let me know if you have additional
information.</p>

<table class="ReportTable" id="report-1" cellspacing="0">
  <colgroup>
    <col>
    <col>
    <col>
    <col>
    <col>
    <col align="center">
    <col>
  </colgroup>
  <thead>
   <tr> 
    <th><b>Make</b></th>
    <th><b>Format</b></th>
    <th><b>Header</b></th>
    <th><b>Endian</b> <sup>1)</sup></th>
    <th><b>Offsets</b> <sup>2)</sup></th>
    <th><b>Ref</b></th>
    <th><b>Remarks</b></th>
   </tr>
  </thead>
  <tbody>
   <tr class="OddRow"> 
    <td>Canon</td>
    <td>IFD</td>
    <td>None</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><a href="#R2">[2]</a></td>
    <td>Some CR2 images have a non-zero next-IFD pointer</td>
   </tr>
   <tr class="EvenRow"> 
    <td>Casio</td>
    <td>IFD</td>
    <td>-</td>
    <td>-</td>
    <td>-</td>
    <td><a href="#R4">[4]</a></td>
    <td>Not supported by Exiv2 yet</td>
   </tr>
   <tr class="OddRow"> 
    <td>FUJI</td>
    <td>IFD, usually at offset 12</td>
    <td>Starts with the string &quot;FUJI&quot; 
    and a 4 byte pointer to the IFD</td>
    <td>Little-endian (II)</td>
    <td>Relative to the beginning of the makernote</td>
    <td><a href="#R1">[1]</a></td>
    <td>Exif data uses big-endian (MM) byte order</td>
   </tr>
   <tr class="EvenRow">
    <td>Minolta, KONICA&nbsp;MINOLTA</td>
    <td>IFD</td>
    <td>None</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><a href="#R5">[5]</a></td>
    <td>Camera settings tag is encoded in big-endian (MM) style, regardless of
    the encoding style of the Exif data</td>
   </tr>
   <tr class="OddRow"> 
    <td>NIKON</td>
    <td>IFD</td>
    <td>None</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><a href="#R3">[3]</a></td>
    <td>Models using this makernote include E990, D1</td>
   </tr>
   <tr class="EvenRow"> 
    <td>NIKON</td>
    <td>IFD, at offset 8</td>
    <td>&quot;Nikon\0&quot; followed by two bytes of unknown meaning</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><a href="#R1">[1]</a></td>
    <td>Models using this makernote include E700, E800, E900, E900S, E910, E950</td>
   </tr>
   <tr class="OddRow"> 
    <td>NIKON</td>
    <td>IFD, usually at offset 18</td>
    <td>&quot;Nikon\0&quot; followed by 4 bytes which look like a version code 
    and a TIFF header</td>
    <td>From makernote TIFF header</td>
    <td>Relative to the start of the makernote TIFF header</td>
    <td>&nbsp;</td>
    <td>Models using this makernote include E5400, SQ, D2H, D70, D100, D200. 
    Makernote IFD of the D200 has no next-IFD pointer. (Is this a bug?)</td>
   </tr>
   <tr class="EvenRow"> 
    <td>OLYMPUS</td>
    <td>IFD, at offset 8</td>
    <td>&quot;OLYMP\0&quot; followed by two bytes of unknown meaning</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><a href="#R1">[1]</a></td>
    <td>&nbsp;</td>
   </tr>
   <tr class="OddRow"> 
    <td>OLYMPUS</td>
    <td>IFD, at offset 12</td>
    <td>&quot;OLYMPUS\0II&quot; followed by two bytes of unknown meaning</td>
    <td>&nbsp;</td>
    <td>Relative to the beginning of the makernote</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
   </tr>
   <tr class="EvenRow"> 
    <td>Sanyo</td>
    <td>IFD</td>
    <td>-</td>
    <td>-</td>
    <td>-</td>
    <td><a href="#R6">[6]</a></td>
    <td>Not supported by Exiv2 yet</td>
   </tr>
   <tr class="OddRow"> 
    <td>SIGMA, FOVEON</td>
    <td>IFD, at offset 10</td>
    <td>&quot;SIGMA\0\0\0&quot; or &quot;FOVEON\0\0&quot; followed by two bytes 
    of unknown meaning</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><a href="#R7">[7]</a></td>
    <td>&nbsp;</td>
   </tr>
   <tr class="EvenRow"> 
    <td>Panasonic</td>
    <td>IFD without a next-IFD pointer at offset 12</td>
    <td>&quot;Panasonic\0\0\0&quot;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><a href="#R8">[8]</a></td>
    <td>&nbsp;</td>
   </tr>
   <tr class="OddRow"> 
    <td>PENTAX</td>
    <td>IFD at offset 6</td>
    <td>&quot;AOC\0&quot; followed by two bytes of unknown meaning</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><a href="#R11">[11]</a></td>
    <td>&nbsp;</td>
   </tr>
   <tr class="EvenRow"> 
    <td>SONY</td>
    <td>IFD without a next-IFD pointer at offset 12</td>
    <td>&quot;SONY DSC \0\0\0&quot;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>Seen in Jpeg images, e.g., from DSC-W7, DSC-R1</td>
   </tr>
   <tr class="OddRow"> 
    <td>SONY</td>
    <td>IFD</td>
    <td>None</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>Seen in SR2 images, e.g., from DSC-R1</td>
   </tr>
  </tbody>
</table>
<script type="text/javascript">
//<![CDATA[
var t1 = new SortableTable(
  document.getElementById("report-1"),
  ["String", "String", "String", "String", "String", "String", "String"]
);
t1.onsort = function () { 
	var rows = t1.tBody.rows;
	var l = rows.length;
	for (var i = 0; i < l; i++) {
		removeClassName(rows[i], i % 2 ? "OddRow" : "EvenRow");
		addClassName(rows[i], i % 2 ? "EvenRow" : "OddRow");
	}
};
//]]>
</script>

<p>
 <small>
  <sup>1)</sup> If not specified, the byte order of the Exif data is applicable.<br>
  <sup>2)</sup> If not specified, offsets are relative to the start of the TIFF header.
 </small>
</p>


<p><a href="http://www.exif.org/">Exif.org</a> has another table with similar 
  info and sample pictures: <a href="http://www.exif.org/samples.html">Digital 
  Camera Sample Images</a>. According to this source, (at least some) Ricoh and 
  Kodak cameras do not write the makernote in IFD format.</p>
<h2><a name="R0">References</a></h2>
<p><a name="R1">[1]</a> <a href="http://park2.wakwak.com/%7Etsuruzoh/Computer/Digicams/exif-e.html">Exif 
  file format</a> by TsuruZoh Tachibanaya<br>
  <a name="R2">[2]</a> <a href="http://www.burren.cx/david/canon.html">EXIF Makernote 
  of Canon</a> by David Burren<br>
  <a name="R3">[3]</a> <a href="http://www.tawbaware.com/990exif.htm">Makernote 
  EXIF Tag of the Nikon 990</a> by Max Lyons<br>
  <a name="R4">[4]</a> <a href="http://www.dicasoft.de/casiomn.htm">&quot;Makernote&quot; 
  Exif tag of Casio</a> by Eckhard Henkel<br>
  <a name="R5">[5]</a> <a href="http://www.dalibor.cz/minolta/makernote.htm">Minolta 
  MakerNote</a> by Dalibor Jelinek<br>
  <a name="R6">[6]</a> <a href="http://www.exif.org/makernotes/SanyoMakerNote.html">Sanyo 
  MakerNote</a> by John Hawkins<br>
  <a name="R7">[7]</a> <a href="http://www.x3f.info/technotes/FileDocs/MakerNoteDoc.html">
  SIGMA and FOVEON EXIF MakerNote Documentation</a> by Foveon<br>
  <a name="R8">[8]</a> <a href="http://www.compton.nu/panasonic.html">Panasonic 
  MakerNote Information</a> by Tom Hughes<br>
  <a name="R9">[9]</a> <a href="http://www.ozhiker.com/electronics/pjmt/jpeg_info/makernotes.html">
  Various Makernote specifications</a> from the <a href="http://www.ozhiker.com/electronics/pjmt/index.html">
  PHP JPEG Metadata Toolkit</a> by Evan Hunter<br>
  <a name="R10">[10]</a> <a href="http://www.sno.phy.queensu.ca/~phil/exiftool/">ExifTool</a>, the most complete and up-to-date tool for reading and writing meta information in image files, by Phil Harvey<br>
  <a name="R11">[11]</a> <a href="http://www.gvsoft.homedns.org/exif/makernote-pentax-type3.html">EXIF: Pentax type3 Makernotes</a> by Ger Vermeulen</p>
</div>
<!-- closes content -->

</body>
</html>