~ubuntu-branches/ubuntu/karmic/libimage-exiftool-perl/karmic

« back to all changes in this revision

Viewing changes to html/exiftool_pod.html

  • Committer: Bazaar Package Importer
  • Author(s): Mari Wang
  • Date: 2008-02-04 20:32:53 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080204203253-mpbal8trlfe1fz5d
Tags: 7.00-1
* Upload of new production release (Closes: #456430)
* Added Recommends: libcompress-zlib-perl (Closes: #435589)
* Package now includes iptc2xmp.args and xmp2iptc.args, they are put
  into /usr/share/libimage-exiftool/ (Closes: #436100)
* Updated standards-version (3.7.2 -> 3.7.3). No changes needed.
* Lots of updates and bugfixes compared to last debian version
  (6.90).  See the Changes file for details
* Upload sponsored by Petter Reinholdtsen

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
3
<head>
4
4
<title>exiftool Application Documentation</title>
5
 
<link rev="made" href="mailto:root@b19.apple.com" />
 
5
<link rev="made" href="mailto:root@b05.apple.com" />
6
6
</head>
7
7
 
8
8
<body style="background-color: white">
71
71
<pre>
72
72
                File Types                 |    Meta Information
73
73
  ---------------------------------------  |  --------------------
74
 
  ACR   r       M4A   r       PS    r/w    |  EXIF           r/w/c
75
 
  AI    r       MEF   r       PSD   r/w    |  GPS            r/w/c
76
 
  AIFF  r       MIE   r/w/c   QTIF  r      |  IPTC           r/w/c
77
 
  APE   r       MIFF  r       RA    r      |  XMP            r/w/c
78
 
  ARW   r       MNG   r/w     RAF   r      |  MakerNotes     r/w/c
79
 
  ASF   r       MOS   r/w     RAM   r      |  Photoshop IRB  r/w/c
80
 
  AVI   r       MOV   r       RAW   r/w    |  ICC Profile    r/w/c
81
 
  BMP   r       MP3   r       RIFF  r      |  MIE            r/w/c
82
 
  CR2   r/w     MP4   r       RM    r      |  JFIF           r/w/c
83
 
  CRW   r/w     MPC   r       SR2   r      |  CIFF           r/w
84
 
  DCM   r       MPG   r       SRF   r      |  AFCP           r/w
85
 
  DNG   r/w     MRW   r/w     SWF   r      |  DICOM          r
86
 
  DOC   r       NEF   r/w     THM   r/w    |  FlashPix       r
87
 
  EPS   r/w     OGG   r       TIFF  r/w    |  GeoTIFF        r
88
 
  ERF   r/w     ORF   r/w     VRD   r/w    |  PrintIM        r
89
 
  FLAC  r       PBM   r/w     WAV   r      |  ID3            r
90
 
  FPX   r       PDF   r       WDP   r/w    |  Kodak Meta     r
91
 
  GIF   r/w     PEF   r/w     WMA   r      |  Ricoh RMETA    r
92
 
  HTML  r       PGM   r/w     WMV   r      |  Picture Info   r
93
 
  ICC   r/w/c   PICT  r       X3F   r      |  Adobe APP14    r
94
 
  JNG   r/w     PNG   r/w     XLS   r      |  APE            r
95
 
  JP2   r       PPM   r/w     XMP   r/w/c  |  Vorbis         r
96
 
  JPEG  r/w     PPT   r                    |  (and more)</pre>
 
74
  ACR   r       JP2   r/w     PPT   r      |  EXIF           r/w/c
 
75
  AI    r       JPEG  r/w     PS    r/w    |  GPS            r/w/c
 
76
  AIFF  r       K25   r       PSD   r/w    |  IPTC           r/w/c
 
77
  APE   r       M4A   r       QTIF  r      |  XMP            r/w/c
 
78
  ARW   r       MEF   r/w     RA    r      |  MakerNotes     r/w/c
 
79
  ASF   r       MIE   r/w/c   RAF   r      |  Photoshop IRB  r/w/c
 
80
  AVI   r       MIFF  r       RAM   r      |  ICC Profile    r/w/c
 
81
  BMP   r       MNG   r/w     RAW   r/w    |  MIE            r/w/c
 
82
  BTF   r       MOS   r/w     RIFF  r      |  JFIF           r/w/c
 
83
  CR2   r/w     MOV   r       RM    r      |  Ducky APP12    r/w/c
 
84
  CRW   r/w     MP3   r       SR2   r      |  CIFF           r/w
 
85
  CS1   r/w     MP4   r       SRF   r      |  AFCP           r/w
 
86
  DCM   r       MPC   r       SWF   r      |  DICOM          r
 
87
  DCR   r       MPG   r       THM   r/w    |  Flash          r
 
88
  DNG   r/w     MRW   r/w     TIFF  r/w    |  FlashPix       r
 
89
  DOC   r       NEF   r/w     VRD   r/w/c  |  GeoTIFF        r
 
90
  EPS   r/w     OGG   r       WAV   r      |  PrintIM        r
 
91
  ERF   r/w     ORF   r/w     WDP   r/w    |  ID3            r
 
92
  FLAC  r       PBM   r/w     WMA   r      |  Kodak Meta     r
 
93
  FLV   r       PDF   r       WMV   r      |  Ricoh RMETA    r
 
94
  FPX   r       PEF   r/w     X3F   r      |  Picture Info   r
 
95
  GIF   r/w     PGM   r/w     XLS   r      |  Adobe APP14    r
 
96
  HTML  r       PICT  r       XMP   r/w/c  |  APE            r
 
97
  ICC   r/w/c   PNG   r/w                  |  Vorbis         r
 
98
  JNG   r/w     PPM   r/w                  |  (and more)</pre>
97
99
<p>Note:  If <em>FILE</em> is a directory name, then only file types with recognized
98
100
extensions are processed when reading, and only writable types are written.
99
101
However, the <strong>-ext</strong> option may be used to force processing of files with
133
135
<dd>
134
136
Exclude specified tag from extracted information.  Same as the <strong>-x</strong> option.
135
137
May also be used following a <strong>-TagsFromFile</strong> option to exclude tags from
136
 
being copied.
 
138
being copied, or to exclude groups from being deleted when deleting all
 
139
information (ie. <code>-all= --exif:all</code> deletes all but EXIF information).
137
140
</dd>
138
141
<p></p>
139
142
<dt><strong><a name="item__2dtag_5b_2b_2d_5d_3d_5bvalue_5d"><strong>-</strong><em>TAG</em>[+-]<strong>=</strong>[<em>VALUE</em>]</a></strong><br />
147
150
<dd>
148
151
<p>If a group name is not specified for <em>TAG</em>, then the information is written
149
152
to the preferred group, which is the first group in the following list where
150
 
<em>TAG</em> is valid:  1) EXIF, 2) GPS, 3) IPTC, 4) XMP, 5) MakerNotes.</p>
 
153
<em>TAG</em> is valid:  1) EXIF, 2) IPTC, 3) XMP, 4) MakerNotes.</p>
151
154
</dd>
152
155
<dd>
153
156
<p>The special <code>All</code> tag may be used in this syntax only if a <em>VALUE</em> is NOT
216
219
<dt><strong><a name="item__2db"><strong>-b</strong></a></strong><br />
217
220
</dt>
218
221
<dd>
219
 
Output requested data in <strong>b</strong>inary format.  Mainly used for extracting
220
 
embedded images.  Suppresses output of tag names and descriptions.
 
222
Output requested data in <strong>b</strong>inary format without tag names or descriptions.
 
223
This option is mainly used for extracting embedded images, but it may also
 
224
be useful in separating values of list-type tags since a newline is used
 
225
instead of a comma to separate these values in the <strong>-b</strong> output.
221
226
</dd>
222
227
<p></p>
223
228
<dt><strong><a name="item__2dc_fmt"><strong>-c</strong> <em>FMT</em></a></strong><br />
243
248
<dd>
244
249
Set the format for <strong>d</strong>ate/time tag values.  Consult <code>strftime</code> man page
245
250
for <em>FMT</em> syntax. The default format is equivalent to ``%Y:%m:%d %H:%M:%S''.
246
 
This option has no effect on date-only or time-only tags.
 
251
This option has no effect on date-only or time-only tags, and ignores
 
252
timezone information if present.
247
253
</dd>
248
254
<p></p>
249
255
<dt><strong><a name="item__2dd"><strong>-D</strong></a></strong><br />
343
349
dumped.  An <em>OFFSET</em> may be given to specify the base for displayed
344
350
offsets.  If not provided, the EXIF/TIFF base offset is used.  Use
345
351
<strong>-htmlDump0</strong> for absolute offsets.  Currently only EXIF and TIFF
346
 
information is dumped.
 
352
information is dumped, but the -u option can be used to give a raw hex dump
 
353
of other file formats.
347
354
</dd>
348
355
<p></p>
349
356
<dt><strong><a name="item__2di_dir"><strong>-i</strong> <em>DIR</em></a></strong><br />
397
404
</dt>
398
405
<dd>
399
406
Convert 16-bit Unicode characters in output to Windows <strong>L</strong>atin1 (cp1252)
400
 
instead of the default UTF-8.
 
407
instead of the default UTF-8.  When writing, -L is used to specify that
 
408
input text values are Latin1 instead of UTF-8.
401
409
</dd>
402
410
<p></p>
403
411
<dt><strong><a name="item__2dlist_2c__2dlistw_2c__2dlistf_2c__2dlistg_5bnum_"><strong>-list</strong>, <strong>-listw</strong>, <strong>-listf</strong>, <strong>-listg</strong>[<em>NUM</em>], <strong>-listd</strong></a></strong><br />
497
505
option should be used instead unless necessary.
498
506
</dd>
499
507
<p></p>
500
 
<dt><strong><a name="item__2dp_fmtfile_or_expr"><strong>-p</strong> <em>FMTFILE</em> or <em>EXPR</em></a></strong><br />
 
508
<dt><strong><a name="item__2dp_fmtfile_or_str"><strong>-p</strong> <em>FMTFILE</em> or <em>STR</em></a></strong><br />
501
509
</dt>
502
510
<dd>
503
 
<strong>P</strong>rint output in the format specified by the given file or expression (and
504
 
ignore other format options).  Tag names in the format file begin with a
505
 
<code>$</code> symbol and may contain an optional group name.  Case is not
 
511
<strong>P</strong>rint output in the format specified by the given file or string (and
 
512
ignore other format options).  Tag names in the format file or string begin
 
513
with a <code>$</code> symbol and may contain an optional group name.  Case is not
506
514
significant.  Braces <code>{}</code> may be used around the tag name to separate it
507
515
from subsequent text.  Use <code>$$</code> to represent a <code>$</code> symbol.  In the file,
508
516
lines beginning with <code>#</code> are ignored. For example, this format file:
554
562
</dt>
555
563
<dd>
556
564
Print tag names instead of descriptions.  This is the <strong>s</strong>hort output
557
 
format.  Add up to 3 <strong>-s</strong> options for even shorter formats.  Also effective
558
 
when combined with <strong>-t</strong> or <strong>-h</strong> options.
 
565
format.  Add up to 3 <strong>-s</strong> options for even shorter formats:
 
566
</dd>
 
567
<dd>
 
568
<pre>
 
569
    -s        - print tag names instead of descriptions
 
570
    -s -s     - no extra spaces to column-align values
 
571
    -s -s -s  - print values only</pre>
 
572
</dd>
 
573
<dd>
 
574
<p>Also effective when combined with <strong>-t</strong> or <strong>-h</strong> options.</p>
559
575
</dd>
560
576
<p></p>
561
577
<dt><strong><a name="item__2ds"><strong>-S</strong></a></strong><br />
565
581
to column-align values are not printed.
566
582
</dd>
567
583
<p></p>
 
584
<dt><strong><a name="item__2dscanforxmp"><strong>-ScanForXMP</strong></a></strong><br />
 
585
</dt>
 
586
<dd>
 
587
Scan all files (even unrecognized formats) for XMP information unless found
 
588
already.  When combined with the <strong>-fast</strong> option, only unrecognized file
 
589
types are scanned.  Warning: It can be time consuming to scan large files.
 
590
</dd>
 
591
<p></p>
568
592
<dt><strong><a name="item__2dt"><strong>-t</strong></a></strong><br />
569
593
</dt>
570
594
<dd>
621
645
&quot;'-<em>SRCTAG</em>-&gt;<em>DSTTAG</em>'&quot;.</p>
622
646
</dd>
623
647
<dd>
624
 
<p>An extension of the redirection feature allows expressions involving tag
625
 
names to be used on the right hand side of the <code>&lt;</code> symbol with the
626
 
syntax &quot;'-<em>DSTTAG</em>&lt;<em>EXPR</em>'&quot;, where tag names in <em>EXPR</em>
627
 
are prefixed with a <code>$</code> symbol.  See the <strong>-p</strong> option for more details
628
 
about this syntax.  Expressions starting with a <code>=</code> sign must insert a
629
 
single space after the <code>&lt;</code> to avoid confusion with the <code>&lt;=</code> syntax
630
 
which would otherwise attempt to set the tag value from the contents of a
631
 
file.  A single space at the start of an expression is removed if it exists,
632
 
but all other whitespace is preserved.</p>
 
648
<p>An extension of the redirection feature allows strings involving tag names
 
649
to be used on the right hand side of the <code>&lt;</code> symbol with the syntax
 
650
&quot;'-<em>DSTTAG</em>&lt;<em>STR</em>'&quot;, where tag names in <em>STR</em> are
 
651
prefixed with a <code>$</code> symbol.  See the <strong>-p</strong> option for more details about
 
652
this syntax.  Strings starting with a <code>=</code> sign must insert a single space
 
653
after the <code>&lt;</code> to avoid confusion with the <code>&lt;=</code> syntax which would
 
654
otherwise attempt to set the tag value from the contents of a file.  A
 
655
single space at the start of the string is removed if it exists, but all
 
656
other whitespace is preserved.</p>
633
657
</dd>
634
658
<dd>
635
659
<p>See <a href="#copying_examples">COPYING EXAMPLES</a> for examples using <strong>-TagsFromFile</strong>.</p>
762
786
    -w G%-lc.txt      # G.txt, G-b.txt, G-c.txt ...</pre>
763
787
</dd>
764
788
<dd>
765
 
<p>The format codes may also be modified by 'l' or 'u' to specify lower or
 
789
<p>All format codes may also be modified by 'l' or 'u' to specify lower or
766
790
upper case respectively (ie. ``%le'' for a lower case file extension).  When
767
791
used to modify the copy number, the numbers are changed to an alphabetical
768
792
base (ie. as with ``%lc'' in the last example above).</p>
901
925
Extract image resolution from EXIF IFD1 information (thumbnail image IFD).
902
926
</dd>
903
927
<p></p>
904
 
<dt><strong><a name="item_exiftool__2dxmp__2db_a_2ejpg__3e_xmp_2eout">exiftool -xmp -b a.jpg &gt; xmp.out</a></strong><br />
 
928
<dt><strong><a name="item_exiftool__2dxmp__2db_a_2ejpg__3e_out_2exmp">exiftool -xmp -b a.jpg &gt; out.xmp</a></strong><br />
905
929
</dt>
906
930
<dd>
907
931
Extract complete XMP data record intact from <code>a.jpg</code> and write it to
908
 
<code>xmp.out</code> using the special <code>XMP</code> tag (see the Extra tags in
 
932
<code>out.xmp</code> using the special <code>XMP</code> tag (see the Extra tags in
909
933
<a href="TagNames/index.html">Image::ExifTool::TagNames</a>).
910
934
</dd>
911
935
<p></p>
 
936
<dt><strong><a name="item_exiftool__2dicc_profile__2db__2dw_icc_image_2ejpg">exiftool -icc_profile -b -w icc image.jpg</a></strong><br />
 
937
</dt>
 
938
<dd>
 
939
Save complete ICC_Profile from an image to an output file with the same name
 
940
and an extension of <code>.icc</code>.
 
941
</dd>
 
942
<p></p>
912
943
<dt><strong><a name="item_exiftool__2dhtmldump__2dw_tmp_2f_25f__25e_2ehtml_t">exiftool -htmldump -w tmp/%f_%e.html t/images</a></strong><br />
913
944
</dt>
914
945
<dd>
1027
1058
via a single tag.)
1028
1059
</dd>
1029
1060
<p></p>
1030
 
<dt><strong><a name="item_exiftool__2dxmp_3acity_3dkingston_dst_2ejpg">exiftool -xmp:city=Kingston dst.jpg</a></strong><br />
 
1061
<dt><strong><a name="item_exiftool__2dxmp_3acity_3dkingston_image1_2ejpg_ima">exiftool -xmp:city=Kingston image1.jpg image2.nef</a></strong><br />
1031
1062
</dt>
1032
1063
<dd>
1033
 
Write a tag to the XMP group (otherwise in this case the tag would get
1034
 
written to the IPTC group since <code>City</code> exists in both, and IPTC has
1035
 
priority).
 
1064
Write a tag to the XMP group of two images.  (Without the <code>xmp:</code> this tag
 
1065
would get written to the IPTC group since <code>City</code> exists in both, and IPTC
 
1066
is preferred by default.)
1036
1067
</dd>
1037
1068
<p></p>
1038
1069
<dt><strong><a name="item_unknown">exiftool -LightSource-='Unknown (0)' dst.tiff</a></strong><br />
1058
1089
<dd>
1059
1090
Create an XMP data file only from tags defined on the command line.
1060
1091
</dd>
 
1092
<p></p>
 
1093
<dt><strong><a name="item_exiftool__27_2dicc_profile_3c_3d_25d_25f_2eicc_27_">exiftool '-ICC_Profile&lt;=%d%f.icc' image.jpg</a></strong><br />
 
1094
</dt>
 
1095
<dd>
 
1096
Write ICC_Profile to an image from a <code>.icc</code> file of the same name.
 
1097
</dd>
1061
1098
<p></p></dl>
1062
1099
<p>
1063
1100
</p>
1172
1209
Exposure=1/60''.
1173
1210
</dd>
1174
1211
<p></p>
 
1212
<dt><strong><a name="item_exiftool__2dtagsfromfile_src_2ejpg__2dicc_profile_">exiftool -TagsFromFile src.jpg -icc_profile dst.jpg</a></strong><br />
 
1213
</dt>
 
1214
<dd>
 
1215
Copy ICC_Profile from one image to another.
 
1216
</dd>
 
1217
<p></p>
1175
1218
<dt><strong><a name="item_exiftool__2dif__27_24jpgfromraw_27__2db__2djpgfrom">exiftool -if '$jpgfromraw' -b -jpgfromraw -w %d%f_%ue.jpg -execute
1176
1219
-if '$previewimage' -b -previewimage -w %d%f_%ue.jpg -execute
1177
1220
-tagsfromfile @ -srcfile %d%f_%ue.jpg -overwrite_original