~ubuntu-branches/ubuntu/precise/exiv2/precise

« back to all changes in this revision

Viewing changes to doc/html/makernote.html

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Mercatante
  • Date: 2006-12-07 18:40:10 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20061207184010-0ouu8v0dr8nznob9
Tags: 0.12-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!--*- sgml -*-->
2
2
<html>
3
3
<head>
4
 
  <title>Exiv2 - Exif and Iptc metadata manipulation library and tools</title>
 
4
  <title>Exiv2 - Exif and IPTC metadata library and tools</title>
5
5
  <meta name="Author" content="Andreas Huggel">
6
 
  <meta name="Description" content="Open source Exif and Iptc metadata library and tools with Exif MakerNote and read/write support">
 
6
  <meta name="Description" content="Open source Exif and IPTC metadata library and tools with Exif MakerNote and read/write support">
7
7
  <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">
8
 
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
 
8
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
9
9
  <link type="text/css" rel="stylesheet" href="../include/default.css">
10
10
  <link type="text/css" rel="stylesheet" href="../include/sortabletable.css">
11
11
  <link type="text/css" rel="stylesheet" href="doxygen.css">
44
44
 
45
45
<p>
46
46
The Makernote is tag 0x927c in the Exif IFD. According to the 
47
 
<a title="The Exif 2.2 standard (PDF)" href="http://tsc.jeita.or.jp/avs/data/cp3451.pdf">
 
47
<a title="The Exif 2.2 standard (PDF)" href="http://www.exif.org/Exif2-2.PDF">
48
48
Exif 2.2 standard</a>, the makernote is <i>"a tag for manufacturers of
49
49
Exif writers to record any desired information. The contents are up to
50
50
the manufacturer, but this tag should not be used for any other than
51
51
its intended purpose."</i></p> 
52
52
 
53
 
<p>Unfortunately, most vendors do not publish their makernote specifications. (Why not?) 
54
 
Most of the <a href="#R0">specifications available on the Internet</a> 
55
 
were reverse-engineered. Judging from the size of many makernote fields, manufacturers 
56
 
apparently store a lot of information there and from the available specifications, 
57
 
some of this is certainly quite interesting. For example, makernotes may contain 
58
 
information about the lens used, contrast, saturation and sharpness settings, image 
59
 
quality settings, etc.</p>
60
 
 
61
 
<p>Many (but not all) vendors write the makernote in TIFF IFD (Image File Directory) format, 
62
 
i.e., in the same format as the rest of the Exif information is encoded. Although this may 
63
 
appear to make sense at first glance, it actually complicates the situation for programs that 
64
 
attempt to write to the Exif data. The problem is that IFDs contain offsets relative to the 
65
 
start of the Exif data. That implies that if an Exif writer moves a makernote field encoded in 
66
 
IFD format to a different location within the Exif data, it gets corrupted. The reason to
67
 
write to the Exif data could be as simple as to add copyright information, an Exif comment, 
68
 
etc. In my opinion, this is a bug in the specification. In fact, some vendors seem to have
69
 
recognized this problem and use offsets relative to somewhere at the beginning of the makernote 
70
 
field for the makernote IFD.</p>
71
 
 
72
 
<p>The following table summarizes the structures of the makernote field used by some vendors. 
73
 
Please let me know if you find further specifications on the Internet.</p>
 
53
<p>Most vendors do not publish their makernote specifications. Most of the 
 
54
<a href="#R0">specifications available on the Internet</a> 
 
55
were reverse-engineered. Judging from the size of many makernote
 
56
fields, manufacturers store a lot of information there and from the
 
57
available specifications, some of this is certainly quite
 
58
interesting. For example, makernotes may contain information about the
 
59
lens used, contrast, saturation and sharpness settings, image quality
 
60
settings, etc. For some more advanced camera settings, the Exif
 
61
standard doesn't define a standard tag, so camera vendors have to
 
62
resort to using the makernote. Unfortunately, in some cases, camera
 
63
vendors store important information only in proprietary makernote
 
64
fields, instead of using available Exif standard tags. The most
 
65
infamous example for this is Nikon's ISO settings tag.</p>
 
66
 
 
67
<p>Most vendors write the makernote in TIFF format, i.e., in the same
 
68
format as the rest of the Exif information is encoded. This appears to
 
69
be a sensible thing at first glance. Unfortunately, in general it
 
70
means that <i>any</i> change of an Exif tag, which moves the
 
71
makernote field, will corrupt it. It is an inherent problem of the
 
72
TIFF format that a writer must know the format and all extensions
 
73
used, in order to be able to write changes correctly; unknown tags are
 
74
potentially corrupted when they are moved (rearranged). But since
 
75
makernotes are usually proprietary, Exif writers often don't know
 
76
these details. The reason to write to the Exif data could be as simple
 
77
as to add copyright information, an Exif comment, etc. Some camera
 
78
manufacturers seem to have recognized this problem and now use a
 
79
modified TIFF format with offsets relative to somewhere at the
 
80
beginning of the makernote field for the makernote IFD to address the
 
81
issue.</p>
 
82
 
 
83
<p>The following table summarizes the structures of the makernote
 
84
field used by some vendors.  Please let me know if you have additional
 
85
information.</p>
 
86
 
74
87
<table class="ReportTable" id="report-1" cellspacing="0">
75
88
  <colgroup>
76
89
    <col>
125
138
    <td>Minolta, KONICA&nbsp;MINOLTA</td>
126
139
    <td>IFD</td>
127
140
    <td>None</td>
128
 
    <td>&nbsp</td>
129
 
    <td>&nbsp</td>
 
141
    <td>&nbsp;</td>
 
142
    <td>&nbsp;</td>
130
143
    <td><a href="#R5">[5]</a></td>
131
144
    <td>Camera settings tag is encoded in big-endian (MM) style, regardless of
132
145
    the encoding style of the Exif data</td>
241
254
 </small>
242
255
</p>
243
256
 
 
257
 
244
258
<p><a href="http://www.exif.org/">Exif.org</a> has another table with similar 
245
259
  info and sample pictures: <a href="http://www.exif.org/samples.html">Digital 
246
260
  Camera Sample Images</a>. According to this source, (at least some) Ricoh and