exiftool-vendored.pl 13.32.0 → 13.34.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/README.md +2 -2
  2. package/bin/Changes +43 -4
  3. package/bin/MANIFEST +5 -0
  4. package/bin/META.json +1 -1
  5. package/bin/META.yml +1 -1
  6. package/bin/README +47 -46
  7. package/bin/exiftool +100 -83
  8. package/bin/lib/Image/ExifTool/BuildTagLookup.pm +4 -2
  9. package/bin/lib/Image/ExifTool/Canon.pm +15 -2
  10. package/bin/lib/Image/ExifTool/Exif.pm +6 -5
  11. package/bin/lib/Image/ExifTool/FlashPix.pm +4 -159
  12. package/bin/lib/Image/ExifTool/FujiFilm.pm +11 -3
  13. package/bin/lib/Image/ExifTool/Geotag.pm +5 -3
  14. package/bin/lib/Image/ExifTool/GoPro.pm +14 -2
  15. package/bin/lib/Image/ExifTool/LNK.pm +4 -1
  16. package/bin/lib/Image/ExifTool/Lang/cs.pm +0 -1
  17. package/bin/lib/Image/ExifTool/Lang/de.pm +0 -1
  18. package/bin/lib/Image/ExifTool/Lang/fr.pm +0 -1
  19. package/bin/lib/Image/ExifTool/Lang/it.pm +0 -1
  20. package/bin/lib/Image/ExifTool/Lang/ja.pm +0 -1
  21. package/bin/lib/Image/ExifTool/Lang/nl.pm +0 -1
  22. package/bin/lib/Image/ExifTool/Lang/pl.pm +0 -1
  23. package/bin/lib/Image/ExifTool/Lang/zh_cn.pm +0 -1
  24. package/bin/lib/Image/ExifTool/Microsoft.pm +158 -1
  25. package/bin/lib/Image/ExifTool/Minolta.pm +4 -2
  26. package/bin/lib/Image/ExifTool/Nikon.pm +69 -35
  27. package/bin/lib/Image/ExifTool/NikonCustom.pm +40 -10
  28. package/bin/lib/Image/ExifTool/Olympus.pm +253 -34
  29. package/bin/lib/Image/ExifTool/Panasonic.pm +3 -3
  30. package/bin/lib/Image/ExifTool/Pentax.pm +168 -14
  31. package/bin/lib/Image/ExifTool/QuickTime.pm +11 -4
  32. package/bin/lib/Image/ExifTool/README +2 -1
  33. package/bin/lib/Image/ExifTool/Sony.pm +43 -17
  34. package/bin/lib/Image/ExifTool/TNEF.pm +487 -0
  35. package/bin/lib/Image/ExifTool/TagLookup.pm +4375 -4267
  36. package/bin/lib/Image/ExifTool/TagNames.pod +244 -16
  37. package/bin/lib/Image/ExifTool/WriteExif.pl +14 -12
  38. package/bin/lib/Image/ExifTool/Writer.pl +12 -12
  39. package/bin/lib/Image/ExifTool.pm +12 -4
  40. package/bin/lib/Image/ExifTool.pod +50 -44
  41. package/bin/perl-Image-ExifTool.spec +46 -45
  42. package/index.js +2 -2
  43. package/package.json +9 -7
  44. package/bin/windows_exiftool.txt +0 -2936
@@ -1,2936 +0,0 @@
1
- NAME
2
- exiftool - Read and write meta information in files
3
-
4
- RUNNING IN WINDOWS
5
- Drag and drop files or folders onto the exiftool executable to display
6
- meta information, or rename to "exiftool.exe" and run from the command
7
- line to access all exiftool features.
8
-
9
- This stand-alone Windows version allows simple command-line options to
10
- be added to the name of the executable (in brackets and separated by
11
- spaces at the end of the name), providing a mechanism to use options
12
- when launched via the mouse. For example, changing the executable name
13
- to "exiftool(-a -u -g1 -w txt).exe" gives a drag-and-drop utility which
14
- generates sidecar ".txt" files with detailed meta information. As
15
- shipped, the -k option is added to cause exiftool to pause before
16
- terminating (keeping the command window open). Options may also be added
17
- to the "Target" property of a Windows shortcut to the executable.
18
-
19
- SYNOPSIS
20
- Reading
21
- exiftool [*OPTIONS*] [-*TAG*...] [--*TAG*...] *FILE*...
22
-
23
- Writing
24
- exiftool [*OPTIONS*] -*TAG*[+-^<]=[*VALUE*]... *FILE*...
25
-
26
- Copying
27
- exiftool [*OPTIONS*] -tagsFromFile *SRCFILE* [-[*DSTTAG*<]*SRCTAG*...]
28
- *FILE*...
29
-
30
- Other
31
- exiftool [ -ver | -list[w|f|r|wf|g[*NUM*]|d|x|geo] ]
32
-
33
- For specific examples, see the EXAMPLES sections below.
34
-
35
- This documentation is displayed if exiftool is run without an input
36
- *FILE* when one is expected.
37
-
38
- DESCRIPTION
39
- A command-line interface to Image::ExifTool, used for reading and
40
- writing meta information in a variety of file types. *FILE* is one or
41
- more source file names, directory names, or "-" for the standard input.
42
- Metadata is read from source files and printed in readable form to the
43
- console (or written to output text files with -w).
44
-
45
- To write or delete metadata, tag values are assigned using
46
- -*TAG*=[*VALUE*], and/or the -geotag, -csv= or -json= options. To copy
47
- or move metadata, the -tagsFromFile feature is used. By default the
48
- original files are preserved with "_original" appended to their names --
49
- be sure to verify that the new files are OK before erasing the
50
- originals. Once in write mode, exiftool will ignore any read-specific
51
- options.
52
-
53
- Note: If *FILE* is a directory name then only supported file types in
54
- the directory are processed (in write mode only writable types are
55
- processed). However, files may be specified by name, or the -ext option
56
- may be used to force processing of files with any extension. Hidden
57
- files in the directory are also processed. Adding the -r option causes
58
- subdirectories to be processed recursively, but subdirectories with
59
- names beginning with "." are skipped unless -r. is used.
60
-
61
- Below is a list of file types and meta information formats currently
62
- supported by ExifTool (r = read, w = write, c = create):
63
-
64
- File Types
65
- ------------+-------------+-------------+-------------+------------
66
- 360 r/w | DOCX r | ITC r | NUMBERS r | RAM r
67
- 3FR r | DPX r | J2C r | NXD r | RAR r
68
- 3G2 r/w | DR4 r/w/c | JNG r/w | O r | RAW r/w
69
- 3GP r/w | DSS r | JP2 r/w | ODP r | RIFF r
70
- 7Z r | DV r | JPEG r/w | ODS r | RSRC r
71
- A r | DVB r/w | JSON r | ODT r | RTF r
72
- AA r | DVR-MS r | JXL r/w | OFR r | RW2 r/w
73
- AAC r | DYLIB r | K25 r | OGG r | RWL r/w
74
- AAE r | EIP r | KDC r | OGV r | RWZ r
75
- AAX r/w | EPS r/w | KEY r | ONP r | RM r
76
- ACR r | EPUB r | LA r | OPUS r | SEQ r
77
- AFM r | ERF r/w | LFP r | ORF r/w | SKETCH r
78
- AI r/w | EXE r | LIF r | ORI r/w | SO r
79
- AIFF r | EXIF r/w/c | LNK r | OTF r | SR2 r/w
80
- APE r | EXR r | LRV r/w | PAC r | SRF r
81
- ARQ r/w | EXV r/w/c | M2TS r | PAGES r | SRW r/w
82
- ARW r/w | F4A/V r/w | M4A/V r/w | PBM r/w | SVG r
83
- ASF r | FFF r/w | MACOS r | PCAP r | SWF r
84
- AVI r | FITS r | MAX r | PCAPNG r | THM r/w
85
- AVIF r/w | FLA r | MEF r/w | PCD r | TIFF r/w
86
- AZW r | FLAC r | MIE r/w/c | PCX r | TORRENT r
87
- BMP r | FLIF r/w | MIFF r | PDB r | TTC r
88
- BPG r | FLV r | MKA r | PDF r/w | TTF r
89
- BTF r | FPF r | MKS r | PEF r/w | TXT r
90
- C2PA r | FPX r | MKV r | PFA r | VCF r
91
- CHM r | GIF r/w | MNG r/w | PFB r | VNT r
92
- COS r | GLV r/w | MOBI r | PFM r | VRD r/w/c
93
- CR2 r/w | GPR r/w | MODD r | PGF r | VSD r
94
- CR3 r/w | GZ r | MOI r | PGM r/w | WAV r
95
- CRM r/w | HDP r/w | MOS r/w | PLIST r | WDP r/w
96
- CRW r/w | HDR r | MOV r/w | PICT r | WEBP r/w
97
- CS1 r/w | HEIC r/w | MP3 r | PMP r | WEBM r
98
- CSV r | HEIF r/w | MP4 r/w | PNG r/w | WMA r
99
- CUR r | HTML r | MPC r | PPM r/w | WMV r
100
- CZI r | ICC r/w/c | MPG r | PPT r | WPG r
101
- DCM r | ICO r | MPO r/w | PPTX r | WTV r
102
- DCP r/w | ICS r | MQV r/w | PS r/w | WV r
103
- DCR r | IDML r | MRC r | PSB r/w | X3F r/w
104
- DFONT r | IIQ r/w | MRW r/w | PSD r/w | XCF r
105
- DIVX r | IND r/w | MXF r | PSP r | XISF r
106
- DJVU r | INSP r/w | NEF r/w | QTIF r/w | XLS r
107
- DLL r | INSV r | NKA r | R3D r | XLSX r
108
- DNG r/w | INX r | NKSC r/w | RA r | XMP r/w/c
109
- DOC r | ISO r | NRW r/w | RAF r/w | ZIP r
110
-
111
- Meta Information
112
- ----------------------+----------------------+---------------------
113
- EXIF r/w/c | CIFF r/w | Ricoh RMETA r
114
- GPS r/w/c | AFCP r/w | Picture Info r
115
- IPTC r/w/c | Kodak Meta r/w | Adobe APP14 r
116
- XMP r/w/c | FotoStation r/w | MPF r
117
- MakerNotes r/w/c | PhotoMechanic r/w | Stim r
118
- Photoshop IRB r/w/c | JPEG 2000 r | DPX r
119
- ICC Profile r/w/c | DICOM r | APE r
120
- MIE r/w/c | Flash r | Vorbis r
121
- JFIF r/w/c | FlashPix r | SPIFF r
122
- Ducky APP12 r/w/c | QuickTime r | DjVu r
123
- PDF r/w/c | Matroska r | M2TS r
124
- PNG r/w/c | MXF r | PE/COFF r
125
- Canon VRD r/w/c | PrintIM r | AVCHD r
126
- Nikon Capture r/w/c | FLAC r | ZIP r
127
- GeoTIFF r/w/c | ID3 r | (and more)
128
-
129
- OPTIONS
130
- Case is not significant for any command-line option (including tag and
131
- group names), except for single-character options when the corresponding
132
- upper-case option exists. Many single-character options have equivalent
133
- long-name versions (shown in brackets), and some options have inverses
134
- which are invoked with a leading double-dash. Unrecognized options are
135
- interpreted as tag names (for this reason, multiple single-character
136
- options may NOT be combined into one argument). Contrary to standard
137
- practice, options may appear after source file names on the exiftool
138
- command line.
139
-
140
- Option Overview
141
- Tag operations
142
-
143
- -TAG or --TAG Extract or exclude specified tag
144
- -TAG[+-^]=[VALUE] Write new value for tag
145
- -TAG[+-]<=DATFILE Write tag value from contents of file
146
- -[+]TAG[+-]<SRCTAG Copy tag value (see -tagsFromFile)
147
-
148
- -tagsFromFile SRCFILE Copy tag values from file
149
- -x TAG (-exclude) Exclude specified tag
150
-
151
- Input-output text formatting
152
-
153
- -args (-argFormat) Format metadata as exiftool arguments
154
- -b (-binary) Output metadata in binary format
155
- -c FMT (-coordFormat) Set format for GPS coordinates
156
- -charset [[TYPE=]CHARSET] Specify encoding for special characters
157
- -csv[[+]=CSVFILE] Export/import tags in CSV format
158
- -csvDelim STR Set delimiter for CSV file
159
- -d FMT (-dateFormat) Set format for date/time values
160
- -D (-decimal) Show tag ID numbers in decimal
161
- -E,-ex,-ec (-escape(HTML|XML|C))Escape tag values for HTML, XML or C
162
- -f (-forcePrint) Force printing of all specified tags
163
- -g[NUM...] (-groupHeadings) Organize output by tag group
164
- -G[NUM...] (-groupNames) Print group name for each tag
165
- -h (-htmlFormat) Use HTML formatting for output
166
- -H (-hex) Show tag ID numbers in hexadecimal
167
- -htmlDump[OFFSET] Generate HTML-format binary dump
168
- -j[[+]=JSONFILE] (-json) Export/import tags in JSON format
169
- -l (-long) Use long 2-line output format
170
- -L (-latin) Use Windows Latin1 encoding
171
- -lang [LANG] Set current language
172
- -listItem INDEX Extract specific item from a list
173
- -n (--printConv) No print conversion
174
- -p[-] STR (-printFormat) Print output in specified format
175
- -php Export tags as a PHP Array
176
- -plot Output tags as SVG plot file
177
- -s[NUM] (-short) Short output format (-s for tag names)
178
- -S (-veryShort) Very short output format
179
- -sep STR (-separator) Set separator string for list items
180
- -sort Sort output alphabetically
181
- -struct Enable output of structured information
182
- -t (-tab) Output in tab-delimited list format
183
- -T (-table) Output in tabular format
184
- -v[NUM] (-verbose) Print verbose messages
185
- -w[+|!] EXT (-textOut) Write (or overwrite!) output text files
186
- -W[+|!] FMT (-tagOut) Write output text file for each tag
187
- -Wext EXT (-tagOutExt) Write only specified file types with -W
188
- -X (-xmlFormat) Use RDF/XML output format
189
-
190
- Processing control
191
-
192
- -a (-duplicates) Allow duplicate tags to be extracted
193
- -e (--composite) Do not generate composite tags
194
- -ee[NUM] (-extractEmbedded) Extract information from embedded files
195
- -ext[+] EXT (-extension) Process files with specified extension
196
- -F[OFFSET] (-fixBase) Fix the base for maker notes offsets
197
- -fast[NUM] Increase speed when extracting metadata
198
- -fileOrder[NUM] [-]TAG Set file processing order
199
- -i DIR (-ignore) Ignore specified directory name
200
- -if[NUM] EXPR Conditionally process files
201
- -m (-ignoreMinorErrors) Ignore minor errors and warnings
202
- -o OUTFILE (-out) Set output file or directory name
203
- -overwrite_original Overwrite original by renaming tmp file
204
- -overwrite_original_in_place Overwrite original by copying tmp file
205
- -P (-preserve) Preserve file modification date/time
206
- -password PASSWD Password for processing protected files
207
- -progress[NUM][:[TITLE]] Show file progress count
208
- -q (-quiet) Quiet processing
209
- -r[.] (-recurse) Recursively process subdirectories
210
- -scanForXMP Brute force XMP scan
211
- -u (-unknown) Extract unknown tags
212
- -U (-unknown2) Extract unknown binary tags too
213
- -wm MODE (-writeMode) Set mode for writing/creating tags
214
- -z (-zip) Read/write compressed information
215
-
216
- Other options
217
-
218
- -@ ARGFILE Read command-line arguments from file
219
- -k (-pause) Pause before terminating
220
- -list[w|f|wf|g[NUM]|d|x] List various exiftool capabilities
221
- -ver Print exiftool version number
222
- -- End of options
223
-
224
- Special features
225
-
226
- -diff FILE2 Compare metadata with another file
227
- -geotag TRKFILE Geotag images from specified GPS log
228
- -globalTimeShift SHIFT Shift all formatted date/time values
229
- -use MODULE Add features from plug-in module
230
-
231
- Utilities
232
-
233
- -delete_original[!] Delete "_original" backups
234
- -restore_original Restore from "_original" backups
235
-
236
- Advanced options
237
-
238
- -api OPT[[^]=[VAL]] Set ExifTool API option
239
- -common_args Define common arguments
240
- -config CFGFILE Specify configuration file name
241
- -echo[NUM] TEXT Echo text to stdout or stderr
242
- -efile[NUM][!] TXTFILE Save names of files with errors
243
- -execute[NUM] Execute multiple commands on one line
244
- -fileNUM ALTFILE Load tags from alternate file
245
- -list_dir List directories, not their contents
246
- -srcfile FMT Process a different source file
247
- -stay_open FLAG Keep reading -@ argfile even after EOF
248
- -userParam PARAM[[^]=[VAL]] Set user parameter (API UserParam opt)
249
-
250
- Option Details
251
- Tag operations
252
- -*TAG*
253
- Extract information for the specified tag (eg. "-CreateDate").
254
- Multiple tags may be specified in a single command. A tag name is
255
- the handle by which a piece of information is referenced. See
256
- Image::ExifTool::TagNames for documentation on available tag names.
257
- A tag name may include leading group names separated by colons (eg.
258
- "-EXIF:CreateDate", or "-Doc1:XMP:Creator"), and each group name
259
- may be prefixed by a digit to specify family number (eg.
260
- "-1IPTC:City"). (Note that the API SavePath and SaveFormat options
261
- must be used for the family 5 and 6 groups respectively to be
262
- available.) Use the -listg option to list available group names by
263
- family.
264
-
265
- A special tag name of "All" may be used to indicate all meta
266
- information (ie. -All). This is particularly useful when a group
267
- name is specified to extract all information in a group (but beware
268
- that unless the -a option is also used, some tags in the group may
269
- be suppressed by same-named tags in other groups). The wildcard
270
- characters "?" and "*" may be used in a tag name to match any
271
- single character and zero or more characters respectively. These
272
- may not be used in a group name, with the exception that a group
273
- name of "*" (or "All") may be used to extract all instances of a
274
- tag (as if -a was used). Note that arguments containing wildcards
275
- must be quoted on the command line of most systems to prevent shell
276
- globbing.
277
-
278
- A "#" may be appended to the tag name to disable the print
279
- conversion on a per-tag basis (see the -n option). This may also be
280
- used when writing or copying tags.
281
-
282
- If no tags are specified, all available information is extracted
283
- (as if "-All" had been specified).
284
-
285
- Note: Descriptions, not tag names, are shown by default when
286
- extracting information. Use the -s option to see the tag names
287
- instead.
288
-
289
- --*TAG*
290
- Exclude specified tag from extracted information. Same as the -x
291
- option. Group names and wildcards are permitted as described above
292
- for -TAG. Once excluded from the output, a tag may not be
293
- re-included by a subsequent option. May also be used following a
294
- -tagsFromFile option to exclude tags from being copied (when
295
- redirecting to another tag, it is the source tag that should be
296
- excluded), or to exclude groups from being deleted when deleting
297
- all information (eg. "-all= --exif:all" deletes all but EXIF
298
- information). But note that this will not exclude individual tags
299
- from a group delete (unless a family 2 group is specified, see note
300
- 4 below). Instead, individual tags may be recovered using the
301
- -tagsFromFile option (eg. "-all= -tagsfromfile @ -artist").
302
-
303
- To speed processing when reading XMP, exclusions in XMP groups also
304
- bypass processing of the corresponding XMP property and any
305
- contained properties. For example, "--xmp-crs:all" may speed
306
- processing significantly in cases where a large number of XMP-crs
307
- tags exist. To use this feature to bypass processing of a specific
308
- XMP property, the property name must be used instead of the
309
- ExifTool tag name (eg. "--xmp-crs:dabs"). Also, "XMP-all" may be
310
- used to to indicate any XMP namespace (eg. "--xmp-all:dabs").
311
-
312
- -*TAG*[+-^]=[*VALUE*]
313
- Write a new value for the specified tag (eg. "-comment=wow"), or
314
- delete the tag if no *VALUE* is given (eg. "-comment="). "+=" and
315
- "-=" are used to add or remove existing entries from a list, or to
316
- shift date/time values (see Image::ExifTool::Shift.pl and notes 6
317
- and 7 below for more details). "+=" may also be used to increment
318
- numerical values (or decrement if *VALUE* is negative), and "-="
319
- may be used to conditionally delete or replace a tag (see "WRITING
320
- EXAMPLES" for examples). "^=" is used to write an empty string
321
- instead of deleting the tag when no *VALUE* is given, but otherwise
322
- it is equivalent to "=". (Note that the caret must be quoted on the
323
- Windows command line.)
324
-
325
- *TAG* may contain one or more leading family 0, 1, 2 or 7 group
326
- names, prefixed by optional family numbers, and separated colons.
327
- If no group name is specified, the tag is created in the preferred
328
- group, and updated in any other location where a same-named tag
329
- already exists. The preferred group in JPEG and TIFF-format images
330
- is the first group in the following list where *TAG* is valid: 1)
331
- EXIF, 2) IPTC, 3) XMP.
332
-
333
- The wildcards "*" and "?" may be used in tag names to assign the
334
- same value to multiple tags. When specified with wildcards,
335
- "Unsafe" tags are not written. A tag name of "All" is equivalent to
336
- "*" (except that it doesn't require quoting, while arguments with
337
- wildcards do on systems with shell globbing), and is often used
338
- when deleting all metadata (ie. "-All=") or an entire group (eg.
339
- "-XMP-dc:All=", see note 4 below). Note that not all groups are
340
- deletable, and that the JPEG APP14 "Adobe" group is not removed by
341
- default with "-All=" because it may affect the appearance of the
342
- image. However, color space information is removed, so the colors
343
- may be affected (but this may be avoided by copying back the tags
344
- defined by the ColorSpaceTags shortcut). Use the -listd option for
345
- a complete list of deletable groups, and see note 5 below regarding
346
- the "APP" groups. Also, within an image some groups may be
347
- contained within others, and these groups are removed if the
348
- containing group is deleted:
349
-
350
- JPEG Image:
351
- - Deleting EXIF or IFD0 also deletes ExifIFD, GlobParamIFD,
352
- GPS, IFD1, InteropIFD, MakerNotes, PrintIM and SubIFD.
353
- - Deleting ExifIFD also deletes InteropIFD and MakerNotes.
354
- - Deleting Photoshop also deletes IPTC.
355
-
356
- TIFF Image:
357
- - Deleting EXIF only removes ExifIFD which also deletes
358
- InteropIFD and MakerNotes.
359
-
360
- MOV/MP4 Video:
361
- - Deleting ItemList also deletes Keys tags.
362
-
363
- Notes:
364
-
365
- 1) Many tag values may be assigned in a single command. If two
366
- assignments affect the same tag, the latter takes precedence
367
- (except for list-type tags, for which both values are written).
368
-
369
- 2) In general, MakerNotes tags are considered "Permanent", and may
370
- be edited but not created or deleted individually. This avoids many
371
- potential problems, including the inevitable compatibility problems
372
- with OEM software which may be very inflexible about the
373
- information it expects to find in the maker notes.
374
-
375
- 3) Changes to PDF files by ExifTool are reversible (by deleting the
376
- update with "-PDF-update:all=") because the original information is
377
- never actually deleted from the file. So ExifTool alone may not be
378
- used to securely edit metadata in PDF files.
379
-
380
- 4) Specifying "-GROUP:all=" deletes the entire group as a block
381
- only if a single family 0 or 1 group is specified. Otherwise all
382
- deletable tags in the specified group(s) are removed individually,
383
- and in this case is it possible to exclude individual tags from a
384
- mass delete. For example, "-time:all --Exif:Time:All" removes all
385
- deletable Time tags except those in the EXIF. This difference also
386
- applies if family 2 is specified when deleting all groups. For
387
- example, "-2all:all=" deletes tags individually, while "-all:all="
388
- deletes entire blocks.
389
-
390
- 5) The "APP" group names ("APP0" through "APP15") are used to
391
- delete JPEG application segments which are not associated with
392
- another deletable group. For example, specifying "-APP14:All=" will
393
- NOT delete the APP14 "Adobe" segment because this is accomplished
394
- with "-Adobe:All". But note that these unnamed APP segments may not
395
- be excluded with "--APPxx:all" when deleting all information.
396
-
397
- 6) When shifting a value, the shift is applied to the original
398
- value of the tag, overriding any other values previously assigned
399
- to the tag on the same command line. To shift a date/time value and
400
- copy it to another tag in the same operation, use the
401
- -globalTimeShift option.
402
-
403
- 7) The "+=" operator may not be used to shift a List-type date/time
404
- tag (eg. XMP-dc:Date) because "+=" is used to add elements to the
405
- list. Instead, the -globalTimeShift option should be used.
406
-
407
- Special feature: Integer values may be specified in hexadecimal
408
- with a leading "0x", and simple rational values may be specified as
409
- fractions.
410
-
411
- -*TAG*<=*DATFILE* or -*TAG*<=*FMT*
412
- Set the value of a tag from the contents of file *DATFILE*. The
413
- file name may also be given by a *FMT* string where %d, %f and %e
414
- represent the directory, file name and extension of the original
415
- *FILE* (see the -w option for more details). Note that quotes are
416
- required around this argument to prevent shell redirection since it
417
- contains a "<" symbol. If *DATFILE*/*FMT* is not provided, the
418
- effect is the same as "-TAG=", and the tag is simply deleted. "+<="
419
- or "-<=" may also be used to add or delete specific list entries,
420
- or to shift date/time values.
421
-
422
- -tagsFromFile *SRCFILE* or *FMT*
423
- Copy tag values from *SRCFILE* to *FILE*. Tag names on the command
424
- line after this option specify the tags to be copied, or excluded
425
- from the copy. Wildcards are permitted in these tag names. If no
426
- tags are specified, then all possible tags (see note 1 below) from
427
- the source file are copied to same-named tags in the preferred
428
- location of the output file (the same as specifying "-all"). More
429
- than one -tagsFromFile option may be used to copy tags from
430
- multiple files.
431
-
432
- By default, this option will update any existing and writable
433
- same-named tags in the output *FILE*, but will create new tags only
434
- in their preferred groups. This allows some information to be
435
- automatically transferred to the appropriate group when copying
436
- between images of different formats. However, if a group name is
437
- specified for a tag then the information is written only to this
438
- group (unless redirected to another group, see below). If "All" is
439
- used as a group name, then the specified tag(s) are written to the
440
- same family 1 group they had in the source file (ie. the same
441
- specific location, like ExifIFD or XMP-dc). For example, the common
442
- operation of copying all writable tags to the same specific
443
- locations in the output *FILE* is achieved by adding "-all:all". A
444
- different family may be specified by adding a leading family number
445
- to the group name (eg. "-0all:all" preserves the same general
446
- location, like EXIF or XMP).
447
-
448
- *SRCFILE* may be the same as *FILE* to move information around
449
- within a single file. In this case, "@" may be used to represent
450
- the source file (ie. "-tagsFromFile @"), permitting this feature to
451
- be used for batch processing multiple files. Specified tags are
452
- then copied from each file in turn as it is rewritten. For advanced
453
- batch use, the source file name may also be specified using a *FMT*
454
- string in which %d, %f and %e represent the directory, file name
455
- and extension of *FILE*. (eg. the current *FILE* would be
456
- represented by "%d%f.%e", with the same effect as "@"). See the -w
457
- option for *FMT* string examples.
458
-
459
- A powerful redirection feature allows a destination tag to be
460
- specified for each copied tag. With this feature, information may
461
- be written to a tag with a different name or group. This is done
462
- using "-*DSTTAG*<*SRCTAG*" or "-*SRCTAG*>*DSTTAG*" on the command
463
- line after -tagsFromFile, and causes the value of *SRCTAG* to be
464
- copied from *SRCFILE* and written to *DSTTAG* in *FILE*. Has no
465
- effect unless *SRCTAG* exists in *SRCFILE*. Note that this argument
466
- must be quoted to prevent shell redirection, and there is no "="
467
- sign as when assigning new values. Source and/or destination tags
468
- may be prefixed by a group name and/or suffixed by "#". Wildcards
469
- are allowed in both the source and destination tag names. A
470
- destination group and/or tag name of "All" or "*" writes to the
471
- same family 1 group and/or tag name as the source (but the family
472
- may be specified by adding a leading number to the group name, eg.
473
- "0All" writes to the same family 0 group as the source). If no
474
- destination group is specified, the information is written to the
475
- preferred group. Whitespace around the ">" or "<" is ignored. As a
476
- convenience, "-tagsFromFile @" is assumed for any redirected tags
477
- which are specified without a prior -tagsFromFile option. Copied
478
- tags may also be added or deleted from a list with arguments of the
479
- form "-*SRCTAG*+<*DSTTAG*" or "-*SRCTAG*-<*DSTTAG*" (but see Note 5
480
- below).
481
-
482
- An extension of the redirection feature allows strings involving
483
- tag names to be used on the right hand side of the "<" symbol with
484
- the syntax "-*DSTTAG*<*STR*", where tag names in *STR* are prefixed
485
- with a "$" symbol. See the -p option and the "Advanced formatting
486
- feature" section for more details about this syntax. Strings
487
- starting with a "=" sign must insert a single space after the "<"
488
- to avoid confusion with the "<=" operator which sets the tag value
489
- from the contents of a file. A single space at the start of the
490
- string is removed if it exists, but all other whitespace in the
491
- string is preserved. See note 8 below about using the redirection
492
- feature with list-type stags, shortcuts or when using wildcards in
493
- tag names.
494
-
495
- See "COPYING EXAMPLES" for examples using -tagsFromFile.
496
-
497
- Notes:
498
-
499
- 1) Some tags (generally tags which may affect the appearance of the
500
- image) are considered "Unsafe" to write, and are only copied if
501
- specified explicitly (ie. no wildcards). See the tag name
502
- documentation for more details about "Unsafe" tags.
503
-
504
- 2) Be aware of the difference between excluding a tag from being
505
- copied (--*TAG*), and deleting a tag (-*TAG*=). Excluding a tag
506
- prevents it from being copied to the destination image, but
507
- deleting will remove a pre-existing tag from the image.
508
-
509
- 3) The maker note information is copied as a block, so it isn't
510
- affected like other information by subsequent tag assignments on
511
- the command line, and individual makernote tags may not be excluded
512
- from a block copy. Also, since the PreviewImage referenced from the
513
- maker notes may be rather large, it is not copied, and must be
514
- transferred separately if desired.
515
-
516
- 4) The order of operations is to copy all specified tags at the
517
- point of the -tagsFromFile option in the command line. Any tag
518
- assignment to the right of the -tagsFromFile option is made after
519
- all tags are copied. For example, new tag values are set in the
520
- order One, Two, Three then Four with this command:
521
-
522
- exiftool -One=1 -tagsFromFile s.jpg -Two -Four=4 -Three d.jpg
523
-
524
- This is significant in the case where an overlap exists between the
525
- copied and assigned tags because later operations may override
526
- earlier ones.
527
-
528
- 5) The normal behaviour of copied tags differs from that of
529
- assigned tags for list-type tags and conditional replacements
530
- because each copy operation on a tag overrides any previous
531
- operations. While this avoids duplicate list items when copying
532
- groups of tags from a file containing redundant information, it
533
- also prevents values of different tags from being copied into the
534
- same list when this is the intent. To accumulate values from
535
- different operations into the same list, add a "+" after the
536
- initial "-" of the argument. For example:
537
-
538
- exiftool -tagsfromfile @ '-subject<make' '-+subject<model' ...
539
-
540
- Similarly, "-+DSTTAG" must be used when conditionally replacing a
541
- tag to prevent overriding earlier conditions.
542
-
543
- 6) The -a option (allow duplicate tags) is always in effect when
544
- copying tags from *SRCFILE*, but the highest priority tag is always
545
- copied last so it takes precedence.
546
-
547
- 7) Structured tags are copied by default when copying tags. See the
548
- -struct option for details.
549
-
550
- 8) With the redirection feature, copying a tag directly (ie.
551
- "'-*DSTTAG*<*SRCTAG*'") is not the same as interpolating its value
552
- inside a string (ie. "'-*DSTTAG*<$*SRCTAG*'") for source tags which
553
- are list-type tags, shortcut tags, or tag names containing
554
- wildcards. When copying directly, the values of each matching
555
- source tag are copied individually to the destination tag (as if
556
- they were separate assignments). However, when interpolated inside
557
- a string, list items and the values of shortcut tags are
558
- concatenated (with a separator set by the -sep option), and
559
- wildcards are not allowed.Another difference is that a minor
560
- warning is generated if a tag doesn't exist when interpolating its
561
- value in a string (with "$"), but isn't when copying the tag
562
- directly.
563
-
564
- Finally, the behaviour is different when a destination tag or group
565
- of "All" is used. When copying directly, a destination group and/or
566
- tag name of "All" writes to the same family 1 group and/or tag name
567
- as the source. But when interpolated in a string, the identity of
568
- the source tags are lost and the value is written to all possible
569
- groups/tags. For example, the string form must be used in the
570
- following command since the intent is to set the value of all
571
- existing date/time tags from "CreateDate":
572
-
573
- exiftool "-time:all<$createdate" -wm w FILE
574
-
575
- -x *TAG* (-exclude)
576
- Exclude the specified tag. There may be multiple -x options. This
577
- has the same effect as --*TAG* on the command line. See the --*TAG*
578
- documentation above for a complete description.
579
-
580
- Input-output text formatting
581
- Note that trailing spaces are removed from extracted values for most
582
- output text formats. The exceptions are -b, -csv, -j and -X.
583
-
584
- -args (-argFormat)
585
- Output information in the form of exiftool arguments, suitable for
586
- use with the -@ option when writing. May be combined with the -G
587
- option to include group names. This feature may be used to
588
- effectively copy tags between images, but allows the metadata to be
589
- altered by editing the intermediate file ("out.args" in this
590
- example):
591
-
592
- exiftool -args -G1 --filename --directory src.jpg > out.args
593
- exiftool -@ out.args -sep ", " dst.jpg
594
-
595
- Note: Be careful when copying information with this technique since
596
- it is easy to write tags which are normally considered "Unsafe".
597
- For instance, the FileName and Directory tags are excluded in the
598
- example above to avoid renaming and moving the destination file.
599
- Also note that the second command above will produce warning
600
- messages for any tags which are not writable.
601
-
602
- As well, the -sep option should be used as in the second command
603
- above to maintain separate list items when writing metadata back to
604
- image files, and the -struct option may be used when extracting to
605
- preserve structured XMP information.
606
-
607
- -b, --b (-binary, --binary)
608
- Output requested metadata in binary format without tag names or
609
- descriptions (-b or -binary). This option is mainly used for
610
- extracting embedded images or other binary data, but it may also be
611
- useful for some text strings since control characters (such as
612
- newlines) are not replaced by '.' as they are in the default
613
- output. By default, list items are separated by a newline when
614
- extracted with the -b option and no terminator is added after each
615
- tag value, but the list separator may be changed with a -sep option
616
- and a terminator may be set by adding a second -sep option (see the
617
- -sep option for details). May be combined with -j, -php or -X to
618
- extract binary data in JSON, PHP or XML format, but note that
619
- "Unsafe" tags are not extracted as binary unless they are specified
620
- explicitly or the API RequestAll option is set to 3 or higher.
621
-
622
- With a leading double dash (--b or --binary), tags which contain
623
- binary data are suppressed in the output when reading.
624
-
625
- -c *FMT* (-coordFormat)
626
- Set the print format for GPS coordinates. *FMT* uses the same
627
- syntax as a "printf" format string. The specifiers correspond to
628
- degrees, minutes and seconds in that order, but minutes and seconds
629
- are optional. For example, the following table gives the output for
630
- the same coordinate using various formats:
631
-
632
- FMT Output
633
- ------------------- ------------------
634
- "%d deg %d' %.2f"\" 54 deg 59' 22.80" (default for reading)
635
- "%d %d %.8f" 54 59 22.80000000 (default for copying)
636
- "%d deg %.4f min" 54 deg 59.3800 min
637
- "%.6f degrees" 54.989667 degrees
638
-
639
- Notes:
640
-
641
- 1) To avoid loss of precision, the default coordinate format is
642
- different when copying tags using the -tagsFromFile option.
643
-
644
- 2) If the hemisphere is known, a reference direction (N, S, E or W)
645
- is appended to each printed coordinate, but adding a "+" or "-" to
646
- the format specifier (eg. "%+.6f" or "%-.6f") prints a signed
647
- coordinate instead. ("+" adds a leading "+" for positive
648
- coordinates, but "-" does not.)
649
-
650
- 3) This print formatting may be disabled with the -n option to
651
- extract coordinates as signed decimal degrees.
652
-
653
- -charset [[*TYPE*=]*CHARSET*]
654
- If *TYPE* is "ExifTool" or not specified, this option sets the
655
- ExifTool character encoding for output tag values when reading and
656
- input values when writing, with a default of "UTF8". If no
657
- *CHARSET* is given, a list of available character sets is returned.
658
- Valid *CHARSET* values are:
659
-
660
- CHARSET Alias(es) Description
661
- ---------- --------------- ----------------------------------
662
- UTF8 cp65001, UTF-8 UTF-8 characters (default)
663
- Latin cp1252, Latin1 Windows Latin1 (West European)
664
- Latin2 cp1250 Windows Latin2 (Central European)
665
- Cyrillic cp1251, Russian Windows Cyrillic
666
- Greek cp1253 Windows Greek
667
- Turkish cp1254 Windows Turkish
668
- Hebrew cp1255 Windows Hebrew
669
- Arabic cp1256 Windows Arabic
670
- Baltic cp1257 Windows Baltic
671
- Vietnam cp1258 Windows Vietnamese
672
- Thai cp874 Windows Thai
673
- DOSLatinUS cp437 DOS Latin US
674
- DOSLatin1 cp850 DOS Latin1
675
- DOSCyrillic cp866 DOS Cyrillic
676
- MacRoman cp10000, Roman Macintosh Roman
677
- MacLatin2 cp10029 Macintosh Latin2 (Central Europe)
678
- MacCyrillic cp10007 Macintosh Cyrillic
679
- MacGreek cp10006 Macintosh Greek
680
- MacTurkish cp10081 Macintosh Turkish
681
- MacRomanian cp10010 Macintosh Romanian
682
- MacIceland cp10079 Macintosh Icelandic
683
- MacCroatian cp10082 Macintosh Croatian
684
-
685
- *TYPE* may be "FileName" to specify the encoding of file names on
686
- the command line (ie. *FILE* arguments). In Windows, this triggers
687
- use of wide-character i/o routines, thus providing support for
688
- Unicode file names. See the "WINDOWS UNICODE FILE NAMES" section
689
- below for details.
690
-
691
- Other values of *TYPE* listed below are used to specify the
692
- internal encoding of various meta information formats.
693
-
694
- TYPE Description Default
695
- --------- ------------------------------------------- -------
696
- EXIF Internal encoding of EXIF "ASCII" strings (none)
697
- ID3 Internal encoding of ID3v1 information Latin
698
- IPTC Internal IPTC encoding to assume when Latin
699
- IPTC:CodedCharacterSet is not defined
700
- Photoshop Internal encoding of Photoshop IRB strings Latin
701
- QuickTime Internal encoding of QuickTime strings MacRoman
702
- RIFF Internal encoding of RIFF strings 0
703
-
704
- See <https://exiftool.org/faq.html#Q10> for more information about
705
- coded character sets, and the Image::ExifTool Options for more
706
- details about the -charset settings.
707
-
708
- -csv[[+]=*CSVFILE*]
709
- Export information in CSV format, or import information if
710
- *CSVFILE* is specified. When importing, the CSV file must be in
711
- exactly the same format as the exported file. The first row of the
712
- *CSVFILE* must be the ExifTool tag names (with optional group
713
- names) for each column of the file, and values must be separated by
714
- commas. A special "SourceFile" column specifies the files
715
- associated with each row of information (and a SourceFile of "*"
716
- may be used to define default tags to be imported for all files
717
- which are combined with any tags specified for the specific
718
- SourceFile processed). The -csvDelim option may be used to change
719
- the input/output field delimiter if something other than a comma is
720
- required.
721
-
722
- The following examples demonstrate basic use of the -csv option:
723
-
724
- # generate CSV file with common tags from all images in a directory
725
- exiftool -common -csv dir > out.csv
726
-
727
- # update metadata for all images in a directory from CSV file
728
- exiftool -csv=a.csv dir
729
-
730
- When importing, empty values are ignored unless the -f option is
731
- used and the API MissingTagValue is set to an empty string (in
732
- which case the tag is deleted). Also, FileName and Directory
733
- columns are ignored if they exist (ie. ExifTool will not attempt to
734
- write these tags with a CSV import), but all other columns are
735
- imported. To force a tag to be deleted, use the -f option and set
736
- the value to "-" in the CSV file (or to the MissingTagValue if this
737
- API option was used). Multiple databases may be imported in a
738
- single command.
739
-
740
- Specific tags may be imported from the CSV database by adding
741
- -*TAG* options to the command, or excluded with --*TAG*, with
742
- exclusions taking priority. Group names and wildcards are allowed.
743
- If no tags are specified, then all except FileName and Directory
744
- are used. Tags are imported in the same order as the database
745
- entries.
746
-
747
- When exporting a CSV file, the -g or -G option adds group names to
748
- the tag headings. If the -a option is used to allow duplicate tag
749
- names, the duplicate tags are only included in the CSV output if
750
- the column headings are unique. Adding the -G4 option ensures a
751
- unique column heading for each tag. The -b option may be added to
752
- output binary data, encoded in base64 if necessary (indicated by
753
- ASCII "base64:" as the first 7 bytes of the value). Values may also
754
- be encoded in base64 if the -charset option is used and the value
755
- contains invalid characters.
756
-
757
- When exporting specific tags, the CSV columns are arranged in the
758
- same order as the specified tags provided the column headings
759
- exactly match the specified tag names, otherwise the columns are
760
- sorted in alphabetical order.
761
-
762
- When importing from a CSV file, only files specified on the command
763
- line are processed. Any extra entries in the CSV file are ignored.
764
-
765
- List-type tags are stored as simple strings in a CSV file, but the
766
- -sep option may be used to split them back into separate items when
767
- importing.
768
-
769
- Special feature: -csv+=*CSVFILE* may be used to add items to
770
- existing lists. This affects only list-type tags. Also applies to
771
- the -j option.
772
-
773
- Note that this and the -plot options are fundamentally different
774
- than all other output format options because they require
775
- information from all input files to be buffered in memory before
776
- the output is written. This may result in excessive memory usage
777
- when processing a very large number of files with a single command.
778
- Also, when used with -csv, the -w option changes to specify a
779
- complete file name with no filename formatting codes or append mode
780
- allowed, and -W may not be used. When processing a large number of
781
- files, it is recommended to either use the JSON (-j) or XML (-X)
782
- output format, or use -p to generate a fixed-column CSV file
783
- instead of using the -csv option.
784
-
785
- -csvDelim *STR*
786
- Set the delimiter for separating CSV entries for CSV file
787
- input/output via the -csv option. *STR* may contain "\t", "\n",
788
- "\r" and "\\" to represent TAB, LF, CR and '\' respectively. A
789
- double quote is not allowed in the delimiter. Default is ','.
790
-
791
- -d *FMT* (-dateFormat)
792
- Set the format for date/time tag values. The *FMT* string may
793
- contain formatting codes beginning with a percent character ("%")
794
- to represent the various components of a date/time value. ExifTool
795
- implements 3 format codes internally (see below), but other format
796
- codes are system dependent -- consult the "strftime" man page on
797
- your system for details. The default format is equivalent to
798
- "%Y:%m:%d %H:%M:%S". This option has no effect on date-only or
799
- time-only tags. Requires POSIX::strptime or Time::Piece for the
800
- inversion conversion when writing. Only one -d option may be used
801
- per command.
802
-
803
- Additional format codes implemented internally by ExifTool:
804
-
805
- 1) %z represents the time zone in "+/-HHMM" format. Adding a colon
806
- (ie. %:z) adds a colon separator (eg. "-05:00"). If the date/time
807
- value doesn't contain a time zone then %z gives the system time
808
- zone for the specified date/time value.
809
-
810
- 2) %f represents fractional seconds, and supports an optional width
811
- to specify the number of digits after the decimal point (eg. %3f
812
- would give something like ".437"). Adding a minus sign drops the
813
- decimal point (eg. "%-3f" would give "437").
814
-
815
- 3) %s represents the number of seconds since 00:00 UTC Jan 1, 1970,
816
- taking into account the specified time zone (or system time zone if
817
- not specified).
818
-
819
- -D (-decimal)
820
- Show tag ID number in decimal when extracting information.
821
-
822
- -E, -ex, -ec (-escapeHTML, -escapeXML, -escapeC)
823
- Escape characters in output tag values for HTML (-E), XML (-ex) or
824
- C (-ec). For HTML, all characters with Unicode code points above
825
- U+007F are escaped as well as the following 5 characters: & (&amp;)
826
- ' (&#39;) " (&quot;) > (&gt;) and < (&lt;). For XML, only these 5
827
- characters are escaped. The -E option is implied with -h, and -ex
828
- is implied with -X. For C, all control characters and the backslash
829
- are escaped. The inverse conversion is applied when writing tags.
830
-
831
- -f (-forcePrint)
832
- Force printing of tags even if they don't exist. This option
833
- applies to tags specified on the command line, or with the -p, -if
834
- or -tagsFromFile options. When -f is used, the value of any missing
835
- tag is set to a dash ("-") by default, but this may be configured
836
- via the API MissingTagValue option. -f is also used to add a
837
- 'flags' attribute to the -listx output, or to allow tags to be
838
- deleted when writing with the -csv=*CSVFILE* feature.
839
-
840
- -g[*NUM*][:*NUM*...] (-groupHeadings)
841
- Organize output by tag group. *NUM* specifies a group family
842
- number, and may be 0 (general location), 1 (specific location), 2
843
- (category), 3 (document number), 4 (instance number), 5 (metadata
844
- path), 6 (EXIF/TIFF format), 7 (tag ID) or 8 (file number). -g0 is
845
- assumed if a family number is not specified. May be combined with
846
- other options to add group names to the output. Multiple families
847
- may be specified by separating them with colons. By default the
848
- resulting group name is simplified by removing any leading "Main:"
849
- and collapsing adjacent identical group names, but this can be
850
- avoided by placing a colon before the first family number (eg.
851
- -g:3:1). Use the -listg option to list group names for a specified
852
- family. The API SavePath and SaveFormat options are automatically
853
- enabled if the respective family 5 or 6 group names are requested.
854
- See the API GetGroup documentation for more information.
855
-
856
- -G[*NUM*][:*NUM*...] (-groupNames)
857
- Same as -g but print group name for each tag. -G0 is assumed if
858
- *NUM* is not specified. May be combined with a number of other
859
- options to add group names to the output. Note that *NUM* may be
860
- added wherever -G is mentioned in the documentation. See the -g
861
- option above for details.
862
-
863
- -h (-htmlFormat)
864
- Use HTML table formatting for output. Implies the -E option. The
865
- formatting options -D, -H, -g, -G, -l and -s may be used in
866
- combination with -h to influence the HTML format.
867
-
868
- -H (-hex)
869
- Show tag ID number in hexadecimal when extracting information.
870
-
871
- -htmlDump[*OFFSET*]
872
- Generate a dynamic web page containing a hex dump of the EXIF
873
- information. This can be a very powerful tool for low-level
874
- analysis of EXIF information. The -htmlDump option is also invoked
875
- if the -v and -h options are used together. The verbose level
876
- controls the maximum length of the blocks dumped. An *OFFSET* may
877
- be given to specify the base for displayed offsets. If not
878
- provided, the EXIF/TIFF base offset is used. Use -htmlDump0 for
879
- absolute offsets. Currently only EXIF/TIFF and JPEG information is
880
- dumped, but the -u option can be used to give a raw hex dump of
881
- other file formats.
882
-
883
- -j[[+]=*JSONFILE*] (-json)
884
- Use JSON (JavaScript Object Notation) formatting for console
885
- output, or import JSON file if *JSONFILE* is specified. This option
886
- may be combined with -g to organize the output into objects by
887
- group, or -G to add group names to each tag. List-type tags with
888
- multiple items are output as JSON arrays unless -sep is used. By
889
- default XMP structures are flattened into individual tags in the
890
- JSON output, but the original structure may be preserved with the
891
- -struct option (this also causes all list-type XMP tags to be
892
- output as JSON arrays, otherwise single-item lists would be output
893
- as simple strings). The -a option is implied when -json is used,
894
- but entries with identical JSON names are suppressed in the output.
895
- (-G4 may be used to ensure that all tags have unique JSON names.)
896
-
897
- Adding the -D or -H option changes tag values to JSON objects with
898
- "val" and "id" fields. Adding -l adds a "desc" field, and a "num"
899
- field if the numerical value is different from the converted "val",
900
- and "fmt" and "hex" fields for EXIF metadata if the API SaveFormat
901
- and SaveBin options are set respectively, and the length of the
902
- "hex" output is limited by the API LimitLongValues setting. The -b
903
- option may be added to output binary data, encoded in base64 if
904
- necessary (indicated by ASCII "base64:" as the first 7 bytes of the
905
- value), and -t may be added to include tag table information (see
906
- -t for details). The JSON output is UTF-8 regardless of any -L or
907
- -charset option setting, but the UTF-8 validation is disabled if a
908
- character set other than UTF-8 is specified.
909
-
910
- Note that ExifTool quotes JSON values only if they don't look like
911
- numbers (regardless of the original storage format or the relevant
912
- metadata specification). This may be a problem when reading the
913
- JSON via a strongly typed language. However, the API StructFormat
914
- option may be set to "JSONQ" to force quoting of numbers. As well,
915
- the -sep option may be used to convert arrays into strings. For
916
- example:
917
-
918
- exiftool -j -api structformat=jsonq -sep ", " ...
919
-
920
- If *JSONFILE* is specified, the file is imported and the tag
921
- definitions from the file are used to set tag values on a per-file
922
- basis. The special "SourceFile" entry in each JSON object
923
- associates the information with a specific target file. An object
924
- with a missing SourceFile or a SourceFile of "*" defines default
925
- tags for all target files which are combined with any tags
926
- specified for the specific SourceFile processed. The imported JSON
927
- file must have the same format as the exported JSON files with the
928
- exception that options exporting JSON objects instead of simple
929
- values are not compatible with the import file format (ie. export
930
- with -D, -H, -l, or -T is not compatible, and use -G instead of
931
- -g). Additionally, tag names in the input JSON file may be suffixed
932
- with a "#" to disable print conversion.
933
-
934
- Specific tags may be imported from the JSON database by adding
935
- -*TAG* options to the command, or excluded with --*TAG*, with
936
- exclusions taking priority. Group names and wildcards are allowed.
937
- If no tags are specified, then all except FileName and Directory
938
- are used. Tags are imported in the same order as the database
939
- entries.
940
-
941
- Unlike CSV import, empty values are not ignored, and will cause an
942
- empty value to be written if supported by the specific metadata
943
- type. Tags are deleted by using the -f option and setting the tag
944
- value to "-" (or to the MissingTagValue setting if this API option
945
- was used). Importing with -j+=*JSONFILE* causes new values to be
946
- added to existing lists.
947
-
948
- -l (-long)
949
- Use long 2-line Canon-style output format. Adds a description and
950
- unconverted value (if it is different from the converted value) to
951
- the XML, JSON or PHP output when -X, -j or -php is used. May also
952
- be combined with -listf, -listr or -listwf to add descriptions of
953
- the file types.
954
-
955
- -L (-latin)
956
- Use Windows Latin1 encoding (cp1252) for output tag values instead
957
- of the default UTF-8. When writing, -L specifies that input text
958
- values are Latin1 instead of UTF-8. Equivalent to "-charset latin".
959
-
960
- -lang [*LANG*]
961
- Set current language for tag descriptions and converted values.
962
- *LANG* is "de", "fr", "ja", etc. Use -lang with no other arguments
963
- to get a list of available languages. The default language is "en"
964
- if -lang is not specified. Note that tag/group names are always
965
- English, independent of the -lang setting, and translation of
966
- warning/error messages has not yet been implemented. May also be
967
- combined with -listx to output descriptions in one language only.
968
-
969
- By default, ExifTool uses UTF-8 encoding for special characters,
970
- but the -L or -charset option may be used to invoke other
971
- encodings. Note that ExifTool uses Unicode::LineBreak if available
972
- to help preserve the column alignment of the plain text output for
973
- languages with a variable-width character set.
974
-
975
- Currently, the language support is not complete, but users are
976
- welcome to help improve this by submitting their own translations.
977
- To submit a translation, follow these steps (you must have Perl
978
- installed for this):
979
-
980
- 1. Download and unpack the latest Image-ExifTool full distribution.
981
-
982
- 2. "cd" into the Image-ExifTool directory.
983
-
984
- 3. Run this command to make an XML file of the desired tags (eg.
985
- EXIF):
986
-
987
- ./exiftool -listx -exif:all > out.xml
988
-
989
- 4. Copy this text into a file called "import.pl" in the exiftool
990
- directory:
991
-
992
- push @INC, 'lib';
993
- require Image::ExifTool::TagInfoXML;
994
- my $file = shift or die "Expected XML file name\n";
995
- $Image::ExifTool::TagInfoXML::makeMissing = shift;
996
- Image::ExifTool::TagInfoXML::BuildLangModules($file,8);
997
-
998
- 5. Run the "import.pl" script to Import the XML file, generating
999
- the "MISSING" entries for your language (eg. Russian):
1000
-
1001
- perl import.pl out.xml ru
1002
-
1003
- 6. Edit the generated language module
1004
- lib/Image/ExifTool/Lang/ru.pm, and search and replace all "MISSING"
1005
- strings in the file with your translations.
1006
-
1007
- 7. Email the module ('ru.pm' in this example) to philharvey66 at
1008
- gmail.com
1009
-
1010
- 8. Thank you!!
1011
-
1012
- -listItem *INDEX*
1013
- For list-type tags, this causes only the item with the specified
1014
- index to be extracted. *INDEX* is 0 for the first item in the list.
1015
- Negative indices may also be used to reference items from the end
1016
- of the list. Has no effect on single-valued tags. Also applies to
1017
- tag values when copying from a tag, and in -if conditions.
1018
-
1019
- -n (--printConv)
1020
- Disable print conversion for all tags. By default, extracted values
1021
- are converted to a more human-readable format, but the -n option
1022
- disables this conversion, revealing the machine-readable values.
1023
- For example:
1024
-
1025
- > exiftool -Orientation -S a.jpg
1026
- Orientation: Rotate 90 CW
1027
- > exiftool -Orientation -S -n a.jpg
1028
- Orientation: 6
1029
-
1030
- The print conversion may also be disabled on a per-tag basis by
1031
- suffixing the tag name with a "#" character:
1032
-
1033
- > exiftool -Orientation# -Orientation -S a.jpg
1034
- Orientation: 6
1035
- Orientation: Rotate 90 CW
1036
-
1037
- These techniques may also be used to disable the inverse print
1038
- conversion when writing. For example, the following commands all
1039
- have the same effect:
1040
-
1041
- > exiftool -Orientation="Rotate 90 CW" a.jpg
1042
- > exiftool -Orientation=6 -n a.jpg
1043
- > exiftool -Orientation#=6 a.jpg
1044
-
1045
- -p[-] *STR* or *FMTFILE* (-printFormat)
1046
- Print output in the format specified by the given string or file.
1047
- The argument is interpreted as a string unless a file of that name
1048
- exists, in which case the string is loaded from the contents of the
1049
- file. Tag names in the format string or file begin with a "$"
1050
- symbol and may contain leading group names and/or a trailing "#"
1051
- (to disable print conversion). Case is not significant. Braces "{}"
1052
- may be used around the tag name to separate it from subsequent text
1053
- (and must be used if subsequent text begins with an alphanumeric
1054
- character, hyphen, underline, colon or number sign). Use $$ to
1055
- represent a "$" symbol, and $/ for a newline. When the string
1056
- argument is used (ie. *STR*), a newline is added to the end of the
1057
- string unless -p- is specified or the -b option is used.
1058
-
1059
- Multiple -p options may be used. Lines beginning with "#[HEAD]" and
1060
- "#[TAIL]" are output before the first processed file and after the
1061
- last processed file respectively. Lines beginning with "#[SECT]"
1062
- and "#[ENDS]" are output before and after each section of files. A
1063
- section is defined as a group of consecutive files with the same
1064
- section header (eg. files are grouped by directory if "#[SECT]"
1065
- contains $directory). Lines beginning with "#[BODY]" and lines not
1066
- beginning with "#" are output for each processed file. Lines
1067
- beginning with "#[IF]" are not output, but all BODY lines are
1068
- skipped if any tag on an IF line doesn't exist. Other lines
1069
- beginning with "#" are ignored. (To output a line beginning with
1070
- "#", use "#[BODY]#".) For example, this format file:
1071
-
1072
- # this is a comment line
1073
- #[HEAD]-- Generated by ExifTool $exifToolVersion --
1074
- File: $FileName - $DateTimeOriginal
1075
- (f/$Aperture, ${ShutterSpeed}s, ISO $EXIF:ISO)
1076
- #[TAIL]-- end --
1077
-
1078
- with this command:
1079
-
1080
- exiftool -p test.fmt a.jpg b.jpg
1081
-
1082
- produces output like this:
1083
-
1084
- -- Generated by ExifTool 13.32 --
1085
- File: a.jpg - 2003:10:31 15:44:19
1086
- (f/5.6, 1/60s, ISO 100)
1087
- File: b.jpg - 2006:05:23 11:57:38
1088
- (f/8.0, 1/13s, ISO 100)
1089
- -- end --
1090
-
1091
- The values of List-type tags with multiple items, Shortcut tags
1092
- representing multiple tags, and matching tags when the "All" group
1093
- is specified are joined according the -sep option setting when
1094
- interpolated in the string. (Note that when "All" is used as a
1095
- group name, dupicate tags are included regardless of the Duplicates
1096
- option setting.) When "All" is used as a tag name, a value of 1 is
1097
- returned if any tag exists in the specified group, or 0 otherwise
1098
- (unless the "All" group is also specified, in which case the values
1099
- of all matching tags are joined).
1100
-
1101
- The -p output iterates through the family 3 group names, with each
1102
- sub-document producing additional output when combined with the -ee
1103
- (ExtractEmbedded) option.
1104
-
1105
- If a specified tag does not exist, a minor warning is issued and
1106
- the line with the missing tag is not printed. However, the -f
1107
- option may be used to set the value of missing tags to '-' (but
1108
- this may be configured via the API MissingTagValue option), or the
1109
- -m option may be used to ignore minor warnings and leave the
1110
- missing values empty. Alternatively, -q -q may be used to simply
1111
- suppress the warning messages.
1112
-
1113
- The "Advanced formatting feature" may be used to modify the values
1114
- of individual tags within the -p option string.
1115
-
1116
- Note that the API RequestTags option is automatically set for all
1117
- tags used in the *FMTFILE* or *STR*. This allows all other tags to
1118
- be ignored using -API IgnoreTags=all, resulting in reduced memory
1119
- usage and increased speed.
1120
-
1121
- -php Format output as a PHP Array. The -g, -G, -D, -H, -l, -sep and
1122
- -struct options combine with -php, and duplicate tags are handled
1123
- in the same way as with the -json option. As well, the -b option
1124
- may be added to output binary data, and -t may be added to include
1125
- tag table information (see -t for details). Here is a simple
1126
- example showing how this could be used in a PHP script:
1127
-
1128
- <?php
1129
- eval('$array=' . `exiftool -php -q image.jpg`);
1130
- print_r($array);
1131
- ?>
1132
-
1133
- -plot
1134
- Write output for all specified tags and all input files as a single
1135
- SVG-formatted plot. When combined with this feature, the -w option
1136
- argument is a complete file name with no format codes and the
1137
- append feature may not be used. Each tag specified on the command
1138
- line represents a dataset in the plot (or more for array values or
1139
- if the Split plot setting is used). Non-numerical values are
1140
- ignored. Each input file may contribute multiple points to a
1141
- dataset if it contains sub-documents and the -ee option is used, or
1142
- if the tag value is a delimited string of numbers (valid delimiters
1143
- are: space, comma, semicolon, tab and newline). Line, Scatter and
1144
- Histogram plot types are available. See the API Plot Option and
1145
- <https://exiftool.org/plot.html> for more details and information
1146
- about the plot settings.
1147
-
1148
- -s[*NUM*] (-short)
1149
- Short output format. Prints tag names instead of descriptions. Add
1150
- *NUM* or up to 3 -s options for even shorter formats:
1151
-
1152
- -s1 or -s - print tag names instead of descriptions
1153
- -s2 or -s -s - no extra spaces to column-align values
1154
- -s3 or -s -s -s - print values only (no tag names)
1155
-
1156
- Also effective when combined with -t, -h, -X or -listx options.
1157
-
1158
- -S (-veryShort)
1159
- Very short format. The same as -s2 or two -s options. Tag names are
1160
- printed instead of descriptions, and no extra spaces are added to
1161
- column-align values.
1162
-
1163
- -sep *STR* (-separator)
1164
- Specify separator string for items in list-type tags. When reading,
1165
- the default is to join list items with ", ". When writing, this
1166
- option causes values assigned to list-type tags to be split into
1167
- individual items at each substring matching *STR* (otherwise they
1168
- are not split by default). Space characters in *STR* match zero or
1169
- more whitespace characters in the value.
1170
-
1171
- Note that an empty separator ("") is allowed, and will join items
1172
- with no separator when reading, or split the value into individual
1173
- characters when writing.
1174
-
1175
- For pure binary output (-b used without -j, -php or -X), the first
1176
- -sep option specifies a list-item separator, and a second -sep
1177
- option specifies a terminator for the end of the list (or after
1178
- each value if not a list). In these strings, "\n", "\r" and "\t"
1179
- may be used to represent a newline, carriage return and tab
1180
- respectively. By default, binary list items are separated by a
1181
- newline, and no terminator is added.
1182
-
1183
- -sort, --sort
1184
- Sort output by tag description, or by tag name if the -s option is
1185
- used. When sorting by description, the sort order will depend on
1186
- the -lang option setting. Without the -sort option, tags appear in
1187
- the order they were specified on the command line, or if not
1188
- specified, the order they were extracted from the file. By default,
1189
- tags are organized by groups when combined with the -g or -G
1190
- option, but this grouping may be disabled with --sort.
1191
-
1192
- -struct, --struct
1193
- Output structured XMP information instead of flattening to
1194
- individual tags. This option works well when combined with the XML
1195
- (-X) and JSON (-j) output formats. For other output formats, XMP
1196
- structures and lists are serialized into the same format as when
1197
- writing structured information (see
1198
- <https://exiftool.org/struct.html> for details). When copying,
1199
- structured tags are copied by default unless --struct is used to
1200
- disable this feature (although flattened tags may still be copied
1201
- by specifying them individually unless -struct is used). These
1202
- options have no effect when assigning new values since both
1203
- flattened and structured tags may always be used when writing.
1204
-
1205
- -t (-tab)
1206
- Output a tab-delimited list of description/values (useful for
1207
- database import). May be combined with -s to print tag names
1208
- instead of descriptions, or -S to print tag values only,
1209
- tab-delimited on a single line. The -t option may be combined with
1210
- -j, -php or -X to add tag table information ("table", tag "id", and
1211
- "index" for cases where multiple conditional tags exist with the
1212
- same ID), which allows the corresponding tag to be located in the
1213
- -listx output.
1214
-
1215
- -T (-table)
1216
- Output tag values in table form. Equivalent to -t -S -q -f.
1217
-
1218
- -v[*NUM*] (-verbose)
1219
- Print verbose messages. *NUM* specifies the level of verbosity in
1220
- the range 0-5, with higher numbers being more verbose. If *NUM* is
1221
- not given, then each -v option increases the level of verbosity by
1222
- 1. With any level greater than 0, most other options are ignored
1223
- and normal console output is suppressed unless specific tags are
1224
- extracted. Using -v0 causes the console output buffer to be flushed
1225
- after each line (which may be useful to avoid delays when piping
1226
- exiftool output), and prints the name of each processed file when
1227
- writing and the new file name when renaming, moving or copying.
1228
- Verbose levels above -v0 do not flush after each line. Also see the
1229
- -progress option.
1230
-
1231
- -w[+|!] *EXT* or *FMT* (-textOut)
1232
- Write console output to files with names ending in *EXT*, one for
1233
- each source file. The output file name is obtained by replacing the
1234
- source file extension (including the '.') with the specified
1235
- extension (and a '.' is added to the start of *EXT* if it doesn't
1236
- already contain one). Alternatively, a *FMT* string may be used to
1237
- give more control over the output file name and directory. In the
1238
- format string, %d, %f and %e represent the directory, filename and
1239
- extension of the source file, and %c represents a copy number which
1240
- is automatically incremented if the file already exists. %d
1241
- includes the trailing '/' if necessary, but %e does not include the
1242
- leading '.'. For example:
1243
-
1244
- -w %d%f.txt # same effect as "-w txt"
1245
- -w dir/%f_%e.out # write files to "dir" as "FILE_EXT.out"
1246
- -w dir2/%d%f.txt # write to "dir2", keeping dir structure
1247
- -w a%c.txt # write to "a.txt" or "a1.txt" or "a2.txt"...
1248
-
1249
- Existing files will not be changed unless an exclamation point is
1250
- added to the option name (ie. -w! or -textOut!) to overwrite the
1251
- file, or a plus sign (ie. -w+ or -textOut+) to append to the
1252
- existing file. Both may be used (ie. -w+! or -textOut+!) to
1253
- overwrite output files that didn't exist before the command was
1254
- run, and append the output from multiple source files. For example,
1255
- to write one output file for all source files in each directory:
1256
-
1257
- exiftool -filename -createdate -T -w+! %d/out.txt -r DIR
1258
-
1259
- Capitalized format codes %D, %F, %E and %C provide slightly
1260
- different alternatives to the lower case versions. %D does not
1261
- include the trailing '/', %F is the full filename including
1262
- extension, %E includes the leading '.', and %C increments the count
1263
- for each processed file (see below).
1264
-
1265
- Notes:
1266
-
1267
- 1) In a Windows BAT file the "%" character is represented by "%%",
1268
- so an argument like "%d%f.txt" is written as "%%d%%f.txt".
1269
-
1270
- 2) If the argument for -w does not contain a valid format code (eg.
1271
- %f), then it is interpreted as a file extension, but there are
1272
- three different ways to create a single output file from multiple
1273
- source files:
1274
-
1275
- # 1. Shell redirection
1276
- exiftool FILE1 FILE2 ... > out.txt
1277
-
1278
- # 2. With the -w option and a zero-width format code
1279
- exiftool -w+! %0fout.txt FILE1 FILE2 ...
1280
-
1281
- # 3. With the -W option (see the -W option below)
1282
- exiftool -W+! out.txt FILE1 FILE2 ...
1283
-
1284
- 3) The -w option changes when used with a multi-file output format
1285
- (-csv or -plot). With these, the argument of -w is a complete file
1286
- name with no formatting codes, and the append feature may not be
1287
- used.
1288
-
1289
- Advanced features:
1290
-
1291
- A substring of the original file name, directory or extension may
1292
- be taken by specifying a field width immediately following the '%'
1293
- character. If the width is negative, the substring is taken from
1294
- the end. The substring position (characters to ignore at the start
1295
- or end of the string) may be given by a second optional value after
1296
- a decimal point. For example:
1297
-
1298
- Input File Name Format Specifier Output File Name
1299
- ---------------- ---------------- ----------------
1300
- Picture-123.jpg %7f.txt Picture.txt
1301
- Picture-123.jpg %-.4f.out Picture.out
1302
- Picture-123.jpg %7f.%-3f Picture.123
1303
- Picture-123a.jpg Meta%-3.1f.txt Meta123.txt
1304
-
1305
- (Note that special characters may have a width of greater than
1306
- one.)
1307
-
1308
- For %d and %D, the field width/position specifiers may be applied
1309
- to the directory levels instead of substring position by using a
1310
- colon instead of a decimal point in the format specifier. For
1311
- example:
1312
-
1313
- Source Dir Format Result Notes
1314
- ------------ ------ ---------- ------------------
1315
- pics/2012/02 %2:d pics/2012/ take top 2 levels
1316
- pics/2012/02 %-:1d pics/2012/ up one directory level
1317
- pics/2012/02 %:1d 2012/02/ ignore top level
1318
- pics/2012/02 %1:1d 2012/ take 1 level after top
1319
- pics/2012/02 %-1:D 02 bottom level folder name
1320
- /Users/phil %:2d phil/ ignore top 2 levels
1321
-
1322
- (Note that the root directory counts as one level when an absolute
1323
- path is used as in the last example above.)
1324
-
1325
- For %c, these modifiers have a different effects. If a field width
1326
- is given, the copy number is padded with zeros to the specified
1327
- width. A leading '-' adds a dash before the copy number, and a '+'
1328
- adds an underline. By default, the copy number is omitted from the
1329
- first file of a given name, but this can be changed by adding a
1330
- decimal point to the modifier. For example:
1331
-
1332
- -w A%-cZ.txt # AZ.txt, A-1Z.txt, A-2Z.txt ...
1333
- -w B%5c.txt # B.txt, B00001.txt, B00002.txt ...
1334
- -w C%.c.txt # C0.txt, C1.txt, C2.txt ...
1335
- -w D%-.c.txt # D-0.txt, D-1.txt, D-2.txt ...
1336
- -w E%-.4c.txt # E-0000.txt, E-0001.txt, E-0002.txt ...
1337
- -w F%-.4nc.txt # F-0001.txt, F-0002.txt, F-0003.txt ...
1338
- -w G%+c.txt # G.txt, G_1.txt G_2.txt ...
1339
- -w H%-lc.txt # H.txt, H-b.txt, H-c.txt ...
1340
- -w I.%.3uc.txt # I.AAA.txt, I.AAB.txt, I.AAC.txt ...
1341
-
1342
- A special feature allows the copy number to be incremented for each
1343
- processed file by using %C (upper case) instead of %c. This allows
1344
- a sequential number to be added to output file names, even if the
1345
- names are different. For %C, a copy number of zero is not omitted
1346
- as it is with %c. A leading '-' causes the number to be reset at
1347
- the start of each new directory (in the original directory
1348
- structure if the files are being moved), and '+' has no effect. The
1349
- number before the decimal place gives the starting index, the
1350
- number after the decimal place gives the field width. To preserve
1351
- synchronization with the processed file number, by default the copy
1352
- number is not incremented to avoid file name collisions, so any
1353
- existing same-named file will cause an error. However using a colon
1354
- instead of a decimal point causes the number to be incremented to
1355
- avoid collisions with existing files.
1356
-
1357
- The following examples show the output filenames when used with the
1358
- command "exiftool rose.jpg star.jpg jet.jpg ...":
1359
-
1360
- -w %C%f.txt # 0rose.txt, 1star.txt, 2jet.txt
1361
- -w %f-%10C.txt # rose-10.txt, star-11.txt, jet-12.txt
1362
- -w %.3C-%f.txt # 000-rose.txt, 001-star.txt, 002-jet.txt
1363
- -w %57.4C%f.txt # 0057rose.txt, 0058star.txt, 0059jet.txt
1364
-
1365
- All format codes may be modified by 'l' or 'u' to specify lower or
1366
- upper case respectively (ie. %le for a lower case file extension).
1367
- When used to modify %c or %C, the numbers are changed to an
1368
- alphabetical base (see example H above). Also, %c and %C may be
1369
- modified by 'n' to count using natural numbers starting from 1,
1370
- instead of 0 (see example F above).
1371
-
1372
- This same *FMT* syntax is used with the -o and -tagsFromFile
1373
- options, although %c and %C are only valid for output file names.
1374
-
1375
- -W[+|!] *FMT* (-tagOut)
1376
- This enhanced version of the -w option allows a separate output
1377
- file to be created for each extracted tag. See the -w option
1378
- documentation above for details of the basic functionality. Listed
1379
- here are the differences between -W and -w:
1380
-
1381
- 1) With -W, a new output file is created for each extracted tag.
1382
-
1383
- 2) -W supports four additional format codes: %t, %g and %s
1384
- represent the tag name, group name, and suggested extension for the
1385
- output file (based on the format of the data), and %o represents
1386
- the value of the OriginalRawFileName or OriginalFileName tag from
1387
- the input file (including extension). The %g code may be followed
1388
- by a single digit to specify the group family number (eg. %g1),
1389
- otherwise family 0 is assumed. The substring width/position/case
1390
- specifiers may be used with these format codes in exactly the same
1391
- way as with %f and %e.
1392
-
1393
- 3) The argument for -W is interpreted as a file name if it contains
1394
- no format codes. (For -w, this would be a file extension.) This
1395
- change allows a simple file name to be specified, which, when
1396
- combined with the append feature, provides a method to write
1397
- metadata from multiple source files to a single output file without
1398
- the need for shell redirection. For example, the following pairs of
1399
- commands give the same result:
1400
-
1401
- # overwriting existing text file
1402
- exiftool test.jpg > out.txt # shell redirection
1403
- exiftool test.jpg -W+! out.txt # equivalent -W option
1404
-
1405
- # append to existing text file
1406
- exiftool test.jpg >> out.txt # shell redirection
1407
- exiftool test.jpg -W+ out.txt # equivalent -W option
1408
-
1409
- 4) Adding the -v option to -W sends a list of the tags and output
1410
- file names to the console instead of giving a verbose dump of the
1411
- entire file. (Unless appending all output to one file for each
1412
- source file by using -W+ with an output file *FMT* that does not
1413
- contain %t, %g, %s or %o.)
1414
-
1415
- 5) Individual list items are stored in separate files when -W is
1416
- combined with -b, but note that for separate files to be created %c
1417
- or %C must be used in *FMT* to give the files unique names.
1418
-
1419
- -Wext *EXT*, --Wext *EXT* (-tagOutExt)
1420
- This option is used to specify the type of output file(s) written
1421
- by the -W option. An output file is written only if the suggested
1422
- extension matches *EXT*. Multiple -Wext options may be used to
1423
- write more than one type of file. Use --Wext to write all but the
1424
- specified type(s).
1425
-
1426
- -X (-xmlFormat)
1427
- Use ExifTool-specific RDF/XML formatting for console output.
1428
- Implies the -a option, so duplicate tags are extracted. The
1429
- formatting options -b, -D, -H, -l, -s, -sep, -struct and -t may be
1430
- used in combination with -X to affect the output, but note that the
1431
- tag ID (-D, -H and -t), binary data (-b) and structured output
1432
- (-struct) options are not effective for the short output (-s).
1433
- Another restriction of -s is that only one tag with a given group
1434
- and name may appear in the output. Note that the tag ID options
1435
- (-D, -H and -t) will produce non-standard RDF/XML unless the -l
1436
- option is also used.
1437
-
1438
- By default, -X outputs flattened tags, so -struct should be added
1439
- if required to preserve XMP structures. List-type tags with
1440
- multiple values are formatted as an RDF Bag, but they are combined
1441
- into a single string when -s or -sep is used. Using -L changes the
1442
- XML encoding from "UTF-8" to "windows-1252". Other -charset
1443
- settings change the encoding only if there is a corresponding
1444
- standard XML character set. The -b option causes binary data values
1445
- to be written, encoded in base64 if necessary. The -t option adds
1446
- tag table information to the output (see -t for details).
1447
-
1448
- Note: This output is NOT the same as XMP because it uses
1449
- dynamically-generated property names corresponding to the ExifTool
1450
- tag names with ExifTool family 1 group names as namespaces, and not
1451
- the standard XMP properties and namespaces. To write XMP instead,
1452
- use the -o option with an XMP extension for the output file.
1453
-
1454
- Processing control
1455
- -a, --a (-duplicates, --duplicates)
1456
- Allow (-a) or suppress (--a) duplicate tag names to be extracted.
1457
- By default, duplicate tags are suppressed when reading unless the
1458
- -ee or -X options are used or the Duplicates option is enabled in
1459
- the configuration file. When writing, this option allows multiple
1460
- Warning messages to be shown. Duplicate tags are always extracted
1461
- when copying.
1462
-
1463
- -e (--composite)
1464
- Extract existing tags only -- don't generate composite tags.
1465
-
1466
- -ee[*NUM*] (-extractEmbedded)
1467
- Extract information from embedded documents in EPS files, embedded
1468
- EPS information and JPEG and Jpeg2000 images in PDF files, embedded
1469
- MPF images in JPEG and MPO files, streaming metadata in AVCHD
1470
- videos, and the resource fork of Mac OS files. Implies the -a
1471
- option. Use -g3 or -G3 to identify the originating document for
1472
- extracted information. Embedded documents containing sub-documents
1473
- are indicated with dashes in the family 3 group name. (eg. "Doc2-3"
1474
- is the 3rd sub-document of the 2nd embedded document.) Note that
1475
- this option may increase processing time substantially, especially
1476
- for PDF files with many embedded images or videos with streaming
1477
- metadata.
1478
-
1479
- When used with -ee, the -p option is evaluated for each embedded
1480
- document as if it were a separate input file. This allows, for
1481
- example, generation of GPS track logs from timed metadata in
1482
- videos. See <https://exiftool.org/geotag.html#Inverse> for
1483
- examples.
1484
-
1485
- Setting *NUM* to 2 causes the H264 video stream in MP4 videos to be
1486
- parsed until the first Supplemental Enhancement Information (SEI)
1487
- message is decoded, or 3 to parse the entire H624 stream and decode
1488
- all SEI information. For M2TS videos, a setting of 3 causes the
1489
- entire file to be parsed in search of unlisted programs which may
1490
- contain timed GPS.
1491
-
1492
- -ext[+] *EXT*, --ext *EXT* (-extension)
1493
- Process only files with (-ext) or without (--ext) a specified
1494
- extension. There may be multiple -ext and --ext options. A plus
1495
- sign may be added (ie. -ext+) to add the specified extension to the
1496
- normally processed files. EXT may begin with a leading ".", which
1497
- is ignored. Case is not significant. "*" may be used to process
1498
- files with any extension (or none at all), as in the last three
1499
- examples:
1500
-
1501
- exiftool -ext JPG DIR # process only JPG files
1502
- exiftool --ext cr2 --ext dng DIR # supported files but CR2/DNG
1503
- exiftool -ext+ txt DIR # supported files plus TXT
1504
- exiftool -ext "*" DIR # process all files
1505
- exiftool -ext "*" --ext xml DIR # process all but XML files
1506
- exiftool -ext "*" --ext . DIR # all but those with no ext
1507
-
1508
- Using this option has two main advantages over specifying "*.*EXT*"
1509
- on the command line: 1) It applies to files in subdirectories when
1510
- combined with the -r option. 2) The -ext option is
1511
- case-insensitive, which is useful when processing files on
1512
- case-sensitive filesystems.
1513
-
1514
- Note that all files specified on the command line will be processed
1515
- regardless of extension unless the -ext option is used.
1516
-
1517
- -F[*OFFSET*] (-fixBase)
1518
- Fix the base for maker notes offsets. A common problem with some
1519
- image editors is that offsets in the maker notes are not adjusted
1520
- properly when the file is modified. This may cause the wrong values
1521
- to be extracted for some maker note entries when reading the edited
1522
- file. This option allows an integer *OFFSET* to be specified for
1523
- adjusting the maker notes base offset. If no *OFFSET* is given,
1524
- ExifTool takes its best guess at the correct base. Note that
1525
- exiftool will automatically fix the offsets for images which store
1526
- original offset information (eg. newer Canon models). Offsets are
1527
- fixed permanently if -F is used when writing EXIF to an image. eg)
1528
-
1529
- exiftool -F -exif:resolutionunit=inches image.jpg
1530
-
1531
- -fast[*NUM*]
1532
- Increase speed of extracting information. With -fast (or -fast1),
1533
- ExifTool will not scan to the end of a JPEG image to check for an
1534
- AFCP or PreviewImage trailer, or past the first comment in GIF
1535
- images or the audio/video data in WAV/AVI files to search for
1536
- additional metadata. These speed benefits are small when reading
1537
- images directly from disk, but can be substantial if piping images
1538
- through a network connection. Also bypasses CRC validation when
1539
- writing PNG images which can be very slow. For more substantial
1540
- speed benefits, -fast2 also causes exiftool to avoid extracting any
1541
- EXIF MakerNote information, and to stop processing at the IDAT
1542
- chunk of PNG images and the mdat atom of QuickTime-format files
1543
- (but note that some files may store metadata after this). -fast3
1544
- avoids extracting metadata from the file, and returns only pseudo
1545
- System tags, but still reads the file header to obtain an educated
1546
- guess at FileType. -fast4 doesn't even read the file header, and
1547
- returns only System tags and a FileType based on the file
1548
- extension. -fast5 also disables generation of the Composite tags
1549
- (like -e). Has no effect when writing.
1550
-
1551
- Note that a separate -fast setting may be used for evaluation of a
1552
- -if condition, or when ordering files with the -fileOrder option.
1553
- See the -if and -fileOrder options for details.
1554
-
1555
- -fileOrder[*NUM*] [-]*TAG*
1556
- Set file processing order according to the sorted value of the
1557
- specified *TAG*. Without this option, files are processed in the
1558
- order returned by the system, which is commonly by file name, but
1559
- this is filesystem dependent. For example, to process files in
1560
- order of date:
1561
-
1562
- exiftool -fileOrder DateTimeOriginal DIR
1563
-
1564
- Additional -fileOrder options may be added for secondary sort keys.
1565
- Numbers are sorted numerically, and all other values are sorted
1566
- alphabetically. Files missing the specified tag are sorted last.
1567
- The sort order may be reversed by prefixing the tag name with a "-"
1568
- (eg. "-fileOrder -createdate"). Print conversion of the sorted
1569
- values is disabled with the -n option, or a "#" appended to the tag
1570
- name. Other formatting options (eg. -d) have no effect on the
1571
- sorted values. Note that the -fileOrder option can incur large
1572
- performance penalty since it involves an additional initial
1573
- processing pass of all files, but this impact may be reduced by
1574
- specifying a *NUM* to effectively set the -fast level for the
1575
- initial pass. For example, -fileOrder4 may be used if *TAG* is a
1576
- pseudo System tag. If multiple -fileOrder options are used, the
1577
- extraction is done at the lowest -fast level. Note that files are
1578
- sorted across directory boundaries if multiple input directories
1579
- are specified.
1580
-
1581
- -i *DIR* (-ignore)
1582
- Ignore specified directory name. *DIR* may be either an individual
1583
- folder name, or a full path, and is case sensitive. If a full path
1584
- is specified, it must match the Directory tag exactly to be
1585
- ignored. Use multiple -i options to ignore more than one directory
1586
- name. A special *DIR* value of "SYMLINKS" may be specified to avoid
1587
- recursing into directories which are symbolic links when the -r
1588
- option is used (note this does not currently work under Windows).
1589
- As well, a value of "HIDDEN" may be used to ignore files with names
1590
- that start with a "." (ie. hidden files on Unix systems) when
1591
- scanning a directory.
1592
-
1593
- -if[*NUM*] *EXPR*
1594
- Specify a condition to be evaluated before processing each *FILE*.
1595
- *EXPR* is a Perl-like logic expression containing tag names
1596
- prefixed by "$" symbols. It is evaluated with the tags from each
1597
- *FILE* in turn, and the file is processed only if the expression
1598
- returns true. Unlike Perl variable names, tag names are not case
1599
- sensitive and may contain a hyphen. As well, tag names may have a
1600
- leading group names separated by colons, and/or a trailing "#"
1601
- character to disable print conversion. The expression $GROUP:all
1602
- evaluates to 1 if any tag exists in the specified "GROUP", or 0
1603
- otherwise (see note 2 below). When multiple -if options are used,
1604
- all conditions must be satisfied to process the file. Returns an
1605
- exit status of 2 if all files fail the condition. Below are a few
1606
- examples:
1607
-
1608
- # extract shutterspeed from all Canon images in a directory
1609
- exiftool -shutterspeed -if "$make eq 'Canon'" dir
1610
-
1611
- # add one hour to all images created on or after Apr. 2, 2006
1612
- exiftool -alldates+=1 -if "$CreateDate ge '2006:04:02'" dir
1613
-
1614
- # set EXIF ISO value if possible, unless it is set already
1615
- exiftool "-exif:iso<iso" -if "not $exif:iso" dir
1616
-
1617
- # find images containing a specific keyword (case insensitive)
1618
- exiftool -if "$keywords =~ /harvey/i" -filename dir
1619
-
1620
- Adding *NUM* to the -if option causes a separate processing pass to
1621
- be executed for evaluating *EXPR* at a -fast level given by *NUM*
1622
- (see the -fast option documentation for details). Without *NUM*,
1623
- only one processing pass is done at the level specified by the
1624
- -fast option. For example, using -if5 is possible if *EXPR* uses
1625
- only pseudo System tags, and may significantly speed processing if
1626
- enough files fail the condition.
1627
-
1628
- The expression has access to the current ExifTool object through
1629
- $self, and the following special functions are available to allow
1630
- short-circuiting of the file processing. Both functions have a
1631
- return value of 1. Case is significant for function names.
1632
-
1633
- End() - end processing after this file
1634
- EndDir() - end processing of files in the current directory
1635
- after this file (not compatible with -fileOrder)
1636
-
1637
- Notes:
1638
-
1639
- 1) The -n and -b options also apply to tags used in *EXPR*.
1640
-
1641
- 2) Some binary data blocks are not extracted unless specified
1642
- explicitly. These tags are not available for use in the -if
1643
- condition unless they are also specified on the command line. The
1644
- alternative is to use the $GROUP:all syntax. (eg. Use $exif:all
1645
- instead of $exif in *EXPR* to test for the existence of EXIF tags.)
1646
-
1647
- 3) Tags in the string are interpolated in a similar way to -p
1648
- before the expression is evaluated. In this interpolation, $/ is
1649
- converted to a newline and $$ represents a single "$" symbol. So
1650
- Perl variables, if used, require a double "$", and regular
1651
- expressions ending in $/ must use $$/ instead.
1652
-
1653
- 4) The condition accesses only tags from the file being processed
1654
- unless the -fileNUM option is used to read an alternate file and
1655
- the corresponding family 8 group name is specified for the tag. See
1656
- the -fileNUM option details for more information.
1657
-
1658
- 5) The -a (Duplicates) option is implied when -if is used without a
1659
- fast *NUM*, and the values of duplicate tags are accessible by
1660
- specifying a group name in the expression (such as a family 4
1661
- instance number, eg. $Copy1:TAG, $Copy2:TAG, etc).
1662
-
1663
- 6) A special "OK" UserParam is available to test the success of the
1664
- previous command when -execute was used, and may be used like any
1665
- other tag in the condition (ie. "$OK").
1666
-
1667
- 7) The API RequestTags option is automatically set for all tags
1668
- used in the -if condition.
1669
-
1670
- -m (-ignoreMinorErrors)
1671
- Ignore minor errors and warnings. This enables writing to files
1672
- with minor errors and disables some validation checks which could
1673
- result in minor warnings. Generally, minor errors/warnings indicate
1674
- a problem which usually won't result in loss of metadata if
1675
- ignored. However, there are exceptions, so ExifTool leaves it up to
1676
- you to make the final decision. Minor errors and warnings are
1677
- indicated by "[minor]" at the start of the message. Warnings which
1678
- affect processing when ignored are indicated by "[Minor]" (with a
1679
- capital "M"). Note that this causes missing values in
1680
- -tagsFromFile, -p and -if strings to be set to an empty string
1681
- rather than an undefined value.
1682
-
1683
- -o *OUTFILE* or *FMT* (-out)
1684
- Set the output file or directory name when writing information.
1685
- Without this option, when any "real" tags are written the original
1686
- file is renamed to "FILE_original" and output is written to *FILE*.
1687
- When writing only FileName and/or Directory "pseudo" tags, -o
1688
- causes the file to be copied instead of moved, but directories
1689
- specified for either of these tags take precedence over that
1690
- specified by the -o option.
1691
-
1692
- *OUTFILE* may be "-" to write to stdout. The output file name may
1693
- also be specified using a *FMT* string in which %d, %f and %e
1694
- represent the directory, file name and extension of *FILE*. Also,
1695
- %c may be used to add a copy number. See the -w option for *FMT*
1696
- string examples.
1697
-
1698
- The output file is taken to be a directory name if it already
1699
- exists as a directory or if the name ends with '/'. Output
1700
- directories are created if necessary. Existing files will not be
1701
- overwritten. Combining the -overwrite_original option with -o
1702
- causes the original source file to be erased after the output file
1703
- is successfully written.
1704
-
1705
- A special feature of this option allows the creation of certain
1706
- types of files from scratch, or with the metadata from another type
1707
- of file. The following file types may be created using this
1708
- technique:
1709
-
1710
- XMP, EXIF, EXV, MIE, ICC/ICM, VRD, DR4
1711
-
1712
- The output file type is determined by the extension of *OUTFILE*
1713
- (specified as "-.EXT" when writing to stdout). The output file is
1714
- then created from a combination of information in *FILE* (as if the
1715
- -tagsFromFile option was used), and tag values assigned on the
1716
- command line. If no *FILE* is specified, the output file may be
1717
- created from scratch using only tags assigned on the command line.
1718
-
1719
- -overwrite_original
1720
- Overwrite the original *FILE* (instead of preserving it by adding
1721
- "_original" to the file name) when writing information to an image.
1722
- Caution: This option should only be used if you already have
1723
- separate backup copies of your image files. The overwrite is
1724
- implemented by renaming a temporary file to replace the original.
1725
- This deletes the original file and replaces it with the edited
1726
- version in a single operation. When combined with -o, this option
1727
- causes the original file to be deleted if the output file was
1728
- successfully written (ie. the file is moved instead of copied).
1729
-
1730
- -overwrite_original_in_place
1731
- Similar to -overwrite_original except that an extra step is added
1732
- to allow the original file attributes to be preserved. For example,
1733
- on a Mac this causes the original file creation date, type,
1734
- creator, label color, icon, Finder tags, other extended attributes
1735
- and hard links to the file to be preserved (but note that the Mac
1736
- OS resource fork is always preserved unless specifically deleted
1737
- with "-rsrc:all="). This is implemented by opening the original
1738
- file in update mode and replacing its data with a copy of a
1739
- temporary file before deleting the temporary. The extra step
1740
- results in slower performance, so the -overwrite_original option
1741
- should be used instead unless necessary.
1742
-
1743
- Note that this option reverts to the behaviour of the
1744
- -overwrite_original option when also writing the FileName and/or
1745
- Directory tags.
1746
-
1747
- -P (-preserve)
1748
- Preserve the filesystem modification date/time ("FileModifyDate")
1749
- of the original file when writing. Note that some filesystems store
1750
- a creation date (ie. "FileCreateDate" on Windows and Mac systems)
1751
- which is not affected by this option. This creation date is
1752
- preserved on Windows systems where Win32API::File and Win32::API
1753
- are available regardless of this setting. For other systems, the
1754
- -overwrite_original_in_place option may be used if necessary to
1755
- preserve the creation date. The -P option is superseded by any
1756
- value written to the FileModifyDate tag.
1757
-
1758
- -password *PASSWD*
1759
- Specify password to allow processing of password-protected PDF
1760
- documents. If a password is required but not given, a warning is
1761
- issued and the document is not processed. This option is ignored if
1762
- a password is not required.
1763
-
1764
- -progress[NUM][:[*TITLE*]]
1765
- Show the progress when processing files. Without a colon, the
1766
- -progress option adds a progress count in brackets after the name
1767
- of each processed file, giving the current file number and the
1768
- total number of files to be processed. Implies the -v0 option,
1769
- causing the names of processed files to also be printed when
1770
- writing. When combined with the -if option, the total count
1771
- includes all files before the condition is applied, but files that
1772
- fail the condition will not have their names printed. If NUM is
1773
- specified, the progress is shown every NUM input files.
1774
-
1775
- If followed by a colon (ie. -progress:), the console window title
1776
- is set according to the specified *TITLE* string. If no *TITLE* is
1777
- given, a default *TITLE* string of "ExifTool %p%%" is assumed. In
1778
- the string, %f represents the file name, %p is the progress as a
1779
- percent, %r is the progress as a ratio, %##b is a progress bar of
1780
- width "##" (where "##" is an integer specifying the bar width in
1781
- characters, or 20 characters by default if "##" is omitted), and %%
1782
- is a % character. May be combined with the normal -progress option
1783
- to also show the progress count in console messages. (Note: For
1784
- this feature to function correctly on Mac/Linux, stderr must go to
1785
- the console.)
1786
-
1787
- -q (-quiet)
1788
- Quiet processing. One -q suppresses normal informational messages,
1789
- and a second -q suppresses warnings as well. Error messages can not
1790
- be suppressed, although minor errors may be downgraded to warnings
1791
- with the -m option, which may then be suppressed with "-q -q".
1792
-
1793
- -r[.] (-recurse)
1794
- Recursively process files in subdirectories. Only meaningful if
1795
- *FILE* is a directory name. Subdirectories with names beginning
1796
- with "." are not processed unless "." is added to the option name
1797
- (ie. -r. or -recurse.). By default, exiftool will also follow
1798
- symbolic links to directories if supported by the system, but this
1799
- may be disabled with "-i SYMLINKS" (see the -i option for details).
1800
- Combine this with -ext options to control the types of files
1801
- processed.
1802
-
1803
- -scanForXMP
1804
- Scan all files (even unsupported formats) for XMP information
1805
- unless found already. When combined with the -fast option, only
1806
- unsupported file types are scanned. Warning: It can be time
1807
- consuming to scan large files.
1808
-
1809
- -u (-unknown)
1810
- Extract values of unknown tags. Add another -u to also extract
1811
- unknown information from binary data blocks. This option applies to
1812
- tags with numerical tag ID's, and causes tag names like
1813
- "Exif_0xc5d9" to be generated for unknown information. It has no
1814
- effect on information types which have human-readable tag ID's
1815
- (such as XMP), since unknown tags are extracted automatically from
1816
- these formats.
1817
-
1818
- -U (-unknown2)
1819
- Extract values of unknown tags as well as unknown information from
1820
- some binary data blocks. This is the same as two -u options.
1821
-
1822
- -wm *MODE* (-writeMode)
1823
- Set mode for writing/creating tags. *MODE* is a string of one or
1824
- more characters from the list below. The default write mode is
1825
- "wcg".
1826
-
1827
- w - Write existing tags
1828
- c - Create new tags
1829
- g - create new Groups as necessary
1830
-
1831
- For example, use "-wm cg" to only create new tags (and avoid
1832
- editing existing ones).
1833
-
1834
- The level of the group is the SubDirectory level in the metadata
1835
- structure. For XMP or IPTC this is the full XMP/IPTC block (the
1836
- family 0 group), but for EXIF this is the individual IFD (the
1837
- family 1 group).
1838
-
1839
- -z (-zip)
1840
- When reading, causes information to be extracted from .gz and .bz2
1841
- compressed images (only one image per archive; requires gzip and
1842
- bzip2 to be available). When writing, causes compressed information
1843
- to be written if supported by the metadata format (eg. PNG supports
1844
- compressed textual metadata, JXL supports compressed EXIF and XML,
1845
- and MIE supports any compressed metadata), disables the recommended
1846
- padding in embedded XMP (saving 2424 bytes when writing XMP in a
1847
- file), and writes XMP in shorthand format -- the equivalent of
1848
- setting the API Compress=1 and Compact="NoPadding,Shorthand".
1849
-
1850
- Other options
1851
- -@ *ARGFILE*
1852
- Read command-line arguments from the specified file. The file
1853
- contains one argument per line (NOT one option per line -- some
1854
- options require additional arguments, and all arguments must be
1855
- placed on separate lines). Blank lines and lines beginning with "#"
1856
- are ignored (unless they start with "#[CSTR]", in which case the
1857
- rest of the line is treated as a C string, allowing standard C
1858
- escape sequences such as "\n" for a newline). White space at the
1859
- start of a line is removed. Normal shell processing of arguments is
1860
- not performed, which among other things means that arguments should
1861
- not be quoted and spaces are treated as any other character.
1862
- *ARGFILE* may exist relative to either the current directory or the
1863
- exiftool directory unless an absolute pathname is given.
1864
-
1865
- For example, the following *ARGFILE* will set the value of
1866
- Copyright to "Copyright YYYY, Phil Harvey", where "YYYY" is the
1867
- year of CreateDate:
1868
-
1869
- -d
1870
- %Y
1871
- -copyright<Copyright $createdate, Phil Harvey
1872
-
1873
- Arguments in *ARGFILE* behave exactly the same as if they were
1874
- entered at the location of the -@ option on the command line, with
1875
- the exception that the -config and -common_args options may not be
1876
- used in an *ARGFILE*.
1877
-
1878
- -k (-pause)
1879
- Pause with the message "-- press any key --" before terminating.
1880
- This option is used to prevent the command window from closing when
1881
- run as a Windows drag and drop application.
1882
-
1883
- -list, -listw, -listf, -listr, -listwf, -listg[*NUM*], -listd, -listx,
1884
- -listgeo
1885
- Print a list of all valid tag names (-list), all writable tag names
1886
- (-listw), all supported file extensions (-listf), all recognized
1887
- file extensions (-listr), all writable file extensions (-listwf),
1888
- all tag groups [in a specified family] (-listg[*NUM*]), all
1889
- deletable tag groups (-listd), an XML database of tag details
1890
- including language translations (-listx), or the Geolocation
1891
- database (-listgeo). The -list, -listw and -listx options may be
1892
- followed by an additional argument of the form "-GROUP:All" to list
1893
- only tags in a specific group, where "GROUP" is one or more family
1894
- 0-2 group names (excepting EXIF IFD groups) separated by colons.
1895
- With -listg, *NUM* may be given to specify the group family,
1896
- otherwise family 0 is assumed. The -l or -v option may be combined
1897
- with -listf, -listr or -listwf to add file descriptions to the
1898
- list. The -lang option may be combined with -listx to output
1899
- descriptions in a single language, and the -sort and/or -lang
1900
- options may be combined with -listgeo (installation of the
1901
- alternate database is required for the additional languages). Also,
1902
- the API GeolocMinPop, GeolocFeature and GeolocAltNames options
1903
- apply to the -listgeo output. Here are some examples:
1904
-
1905
- -list # list all tag names
1906
- -list -EXIF:All # list all EXIF tags
1907
- -list -xmp:time:all # list all XMP tags relating to time
1908
- -listw -XMP-dc:All # list all writable XMP-dc tags
1909
- -listf # list all supported file extensions
1910
- -listr # list all recognized file extensions
1911
- -listwf # list all writable file extensions
1912
- -listg1 # list all groups in family 1
1913
- -listd # list all deletable groups
1914
- -listx -EXIF:All # list database of EXIF tags in XML format
1915
- -listx -XMP:All -s # list short XML database of XMP tags
1916
- -listgeo -lang de # list geolocation database in German
1917
-
1918
- When combined with -listx, the -s option shortens the output by
1919
- omitting the descriptions and values (as in the last example
1920
- above), and -f adds 'flags' and 'struct' attributes if applicable.
1921
- The flags are formatted as a comma-separated list of the following
1922
- possible values: Avoid, Binary, List, Mandatory, Permanent,
1923
- Protected, Unknown and Unsafe (see the Tag Name documentation). For
1924
- XMP List tags, the list type (Alt, Bag or Seq) is also given, and
1925
- flattened structure tags are indicated by a Flattened flag with
1926
- 'struct' giving the ID of the parent structure.
1927
-
1928
- Note that none of the -list options require an input *FILE*.
1929
-
1930
- -ver Print exiftool version number. The -v option may be added to print
1931
- addition system information (see the README file of the full
1932
- distribution for more details about optional libraries), or -v2 to
1933
- also list the Perl include directories.
1934
-
1935
- -- Indicates the end of options. Any remaining arguments are treated
1936
- as file names, even if they begin with a dash ("-").
1937
-
1938
- Special features
1939
- -diff *FILE2*
1940
- Compare metadata in *FILE* with *FILE2*. The *FILE2* name may
1941
- include filename formatting codes (see the -w option). All
1942
- extracted tags from the files are compared, but the extracted tags
1943
- may be controlled by adding -TAG or --TAG options. For example,
1944
- below is a command to compare all the same-named files in two
1945
- different directories, ignoring the System tags:
1946
-
1947
- exiftool DIR1 -diff DIR2/%f.%e --system:all
1948
-
1949
- The -g and -G options may be used to organize the output by the
1950
- specified family of groups, with -G1 being the default. The -a
1951
- option is implied. Adding -v includes a count of the number of tags
1952
- that are the same in each group, and -v2 also indicates when zero
1953
- tags were the same. The following text formatting options are valid
1954
- when -diff is used: -c, -charset, -d, -E, -ec, -ex, -L, -lang, -n,
1955
- -s, -sep, -struct and -w.
1956
-
1957
- -geotag *TRKFILE*
1958
- Geotag images from the specified GPS track log file. Using the
1959
- -geotag option is equivalent to writing a value to the "Geotag"
1960
- tag. The GPS position is interpolated from the track at a time
1961
- specified by the value written to the "Geotime" tag. If "Geotime"
1962
- is not specified, the value is copied from
1963
- "SubSecDateTimeOriginal#" if it exists, otherwise
1964
- "DateTimeOriginal#" (the "#" is added to copy the unformatted
1965
- value, avoiding potential conflicts with the -d option). For
1966
- example, the following two commands are equivalent if
1967
- SubSecDateTimeOriginal exists in the file:
1968
-
1969
- exiftool -geotag trk.log image.jpg
1970
- exiftool -geotag trk.log "-Geotime<SubSecDateTimeOriginal#" image.jpg
1971
-
1972
- If the "Geotime" value does not contain a time zone then the local
1973
- system timezone is assumed. Writing "Geotime" causes the following
1974
- tags to be written (provided they can be calculated from the track
1975
- log, and they are supported by the destination metadata format):
1976
- GPSLatitude, GPSLatitudeRef, GPSLongitude, GPSLongitudeRef,
1977
- GPSAltitude, GPSAltitudeRef, GPSDateStamp, GPSTimeStamp,
1978
- GPSDateTime, GPSTrack, GPSTrackRef, GPSSpeed, GPSSpeedRef,
1979
- GPSImgDirection, GPSImgDirectionRef, GPSMeasureMode, GPSDOP,
1980
- GPSPitch, GPSRoll, GPSCoordinates, AmbientTemperature and
1981
- CameraElevationAngle. By default, in image files tags are created
1982
- in EXIF, and updated in XMP only if they already exist. In
1983
- QuickTime-format files GPSCoordinates is created in the preferred
1984
- location (ItemList by default) as well as in XMP. However,
1985
- "EXIF:Geotime", "XMP:Geotime" or "QuickTime:Geotime" may be
1986
- specified to write to write only to one group. Also,
1987
- "ItemList:Geotime", "Keys:Geotime" or "UserData:Geotime" may be
1988
- used to write to a specific location in QuickTime-format files.
1989
- Note that GPSPitch and GPSRoll are non-standard, and require
1990
- user-defined tags in order to be written.
1991
-
1992
- The "Geosync" tag may be used to specify a time correction which is
1993
- applied to each "Geotime" value for synchronization with GPS time.
1994
- For example, the following command compensates for image times
1995
- which are 1 minute and 20 seconds behind GPS:
1996
-
1997
- exiftool -geosync=+1:20 -geotag a.log DIR
1998
-
1999
- Advanced "Geosync" features allow a piecewise linear time drift
2000
- correction and synchronization from previously geotagged images.
2001
- See "geotag.html" in the full ExifTool distribution for more
2002
- information.
2003
-
2004
- Multiple -geotag options may be used to concatenate GPS track log
2005
- data. Also, a single -geotag option may be used to load multiple
2006
- track log files by using wildcards in the *TRKFILE* name, but note
2007
- that in this case *TRKFILE* must be quoted on most systems (with
2008
- the notable exception of Windows) to prevent filename expansion.
2009
- For example:
2010
-
2011
- exiftool -geotag "TRACKDIR/*.log" IMAGEDIR
2012
-
2013
- Currently supported track file formats are GPX, NMEA RMC/GGA/GLL,
2014
- KML, IGC, Garmin XML and TCX, Magellan PMGNTRK, Honeywell PTNTHPR,
2015
- Bramor gEO, Winplus Beacon TXT, and GPS/IMU CSV files. See
2016
- "GEOTAGGING EXAMPLES" for examples. Also see "geotag.html" in the
2017
- full ExifTool distribution and the Image::ExifTool Options for more
2018
- details and for information about geotag configuration options.
2019
-
2020
- The API Geolocation option may be set to the value "geotag" to also
2021
- write the name, province/state and country of the nearest city
2022
- while geotagging. See <https://exiftool.org/geolocation.html> for
2023
- details.
2024
-
2025
- -globalTimeShift *SHIFT*
2026
- Shift all formatted date/time values by the specified amount when
2027
- reading. Does not apply to unformatted (-n) output. *SHIFT* takes
2028
- the same form as the date/time shift when writing (see
2029
- Image::ExifTool::Shift.pl for details), with a negative shift being
2030
- indicated with a minus sign ("-") at the start of the *SHIFT*
2031
- string. For example:
2032
-
2033
- # return all date/times, shifted back by 1 hour
2034
- exiftool -globalTimeShift -1 -time:all a.jpg
2035
-
2036
- # set the file name from the shifted CreateDate (-1 day) for
2037
- # all images in a directory
2038
- exiftool "-filename<createdate" -globaltimeshift "-0:0:1 0:0:0" \
2039
- -d %Y%m%d-%H%M%S.%%e dir
2040
-
2041
- -use *MODULE*
2042
- Add features from specified plug-in *MODULE*. Currently, the MWG
2043
- module is the only plug-in module distributed with exiftool. This
2044
- module adds read/write support for tags as recommended by the
2045
- Metadata Working Group. As a convenience, "-use MWG" is assumed if
2046
- the group name prefix starts with "MWG:" exactly for any requested
2047
- tag. See the MWG Tags documentation for more details. Note that
2048
- this option is not reversible, and remains in effect until the
2049
- application terminates, even across the -execute option.
2050
-
2051
- Utilities
2052
- -restore_original
2053
- -delete_original[!]
2054
- These utility options automate the maintenance of the "_original"
2055
- files created by exiftool. They have no effect on files without an
2056
- "_original" copy. The -restore_original option restores the
2057
- specified files from their original copies by renaming the
2058
- "_original" files to replace the edited versions. For example, the
2059
- following command restores the originals of all JPG images in
2060
- directory "DIR":
2061
-
2062
- exiftool -restore_original -ext jpg DIR
2063
-
2064
- The -delete_original option deletes the "_original" copies of all
2065
- files specified on the command line. Without a trailing "!" this
2066
- option prompts for confirmation before continuing. For example, the
2067
- following command deletes "a.jpg_original" if it exists, after
2068
- asking "Are you sure?":
2069
-
2070
- exiftool -delete_original a.jpg
2071
-
2072
- These options may not be used with other options to read or write
2073
- tag values in the same command, but may be combined with options
2074
- such -ext, -if, -r, -q and -v.
2075
-
2076
- Advanced options
2077
- Among other things, the advanced options allow complex processing to be
2078
- performed from a single command without the need for additional
2079
- scripting. This may be particularly useful for implementations such as
2080
- Windows drag-and-drop applications. These options may also be used to
2081
- improve performance in multi-pass processing by reducing the overhead
2082
- required to load exiftool for each invocation.
2083
-
2084
- -api [*OPT[[^]=[VAL]]*]
2085
- Set ExifTool API option. *OPT* is an API option name. The option
2086
- value is set to 1 if *=VAL* is omitted. If *VAL* is omitted, the
2087
- option value is set to undef if "=" is used, or an empty string
2088
- with "^=". If *OPT* is not specified a list of available options is
2089
- returned. The option name is not case senstive, but the option
2090
- values are. See Image::ExifTool Options for option details. This
2091
- overrides API options set via the config file. Note that the
2092
- exiftool app sets some API options internally, and attempts to
2093
- change these via the command line will have no effect.
2094
-
2095
- -common_args
2096
- Specifies that all arguments following this option are common to
2097
- all executed commands when -execute is used. This and the -config
2098
- option are the only options that may not be used inside a -@
2099
- *ARGFILE*. Note that by definition this option and its arguments
2100
- MUST come after all other options on the command line.
2101
-
2102
- -config *CFGFILE*
2103
- Load specified configuration file instead of the default
2104
- ".ExifTool_config". If used, this option must come before all other
2105
- arguments on the command line and applies to all -execute'd
2106
- commands. This file is used to create user-defined tags as well as
2107
- set default ExifTool options. The *CFGFILE* must exist relative to
2108
- the current working directory or the exiftool application directory
2109
- unless an absolute path is specified. Loading of the default config
2110
- file may be disabled by setting *CFGFILE* to an empty string (ie.
2111
- ""). See <https://exiftool.org/config.html> and
2112
- config_files/example.config in the full ExifTool distribution for
2113
- details about the configuration file syntax.
2114
-
2115
- -echo[*NUM*] *TEXT*
2116
- Echo *TEXT* to stdout (-echo or -echo1) or stderr (-echo2). Text is
2117
- output as the command line is parsed, before the processing of any
2118
- input files. *NUM* may also be 3 or 4 to output text (to stdout or
2119
- stderr respectively) after processing is complete. For -echo3 and
2120
- -echo4, "${status}" may be used in the *TEXT* string to represent
2121
- the numerical exit status of the command (see "EXIT STATUS").
2122
-
2123
- -efile[*NUM*][!] *TXTFILE*
2124
- Save the names of files giving errors (*NUM* missing or 1), files
2125
- that were unchanged (*NUM* is 2), files that fail the -if condition
2126
- (*NUM* is 4), files that were updated (*NUM* is 8), files that were
2127
- created (*NUM* is 16), or any combination thereof by summing *NUM*
2128
- (eg. -efile3 is the same has having both -efile and -efile2 options
2129
- with the same *TXTFILE*). By default, file names are appended to
2130
- any existing *TXTFILE*, but *TXTFILE* is overwritten if an
2131
- exclamation point is added to the option (eg. -efile!). Saves the
2132
- name of the file specified by the -srcfile option if applicable.
2133
-
2134
- -execute[*NUM*]
2135
- Execute command for all arguments up to this point on the command
2136
- line (plus any arguments specified by -common_args). The result is
2137
- as if the commands were executed as separate command lines (with
2138
- the exception of the -config and -use options which remain in
2139
- effect for subsequent commands). Allows multiple commands to be
2140
- executed from a single command line. *NUM* is an optional number
2141
- that is echoed in the "{ready}" message when using the -stay_open
2142
- feature. If a *NUM* is specified, the -q option no longer
2143
- suppresses the output "{readyNUM}" message.
2144
-
2145
- -file*NUM* *ALTFILE*
2146
- Read tags from an alternate source file. Among other things, this
2147
- allows tags from different files to be compared and combined using
2148
- the -if and -p options. *NUM* is any string of digits. Tags from
2149
- alternate files are accessed via the corresponding family 8 group
2150
- name (eg. "File1:TAG" for the -file1 option, "File2:TAG" for
2151
- -file2, etc). *ALTFILE* may contain filename formatting codes like
2152
- the -w option (%d, %f, etc), and/or tag names with a leading "$"
2153
- symbol to access tags from the source file in the same way as the
2154
- -p option (so any other dollar symbol in the file name must be
2155
- doubled, eg. "money$$.jpg"). For example, assuming that the
2156
- OriginalFileName tag has been set in the edited file, a command to
2157
- copy Rights from the original file could look like this:
2158
-
2159
- exiftool -file1 '$originalfilename' '-rights<file1:rights' edited.jpg
2160
-
2161
- Subtle note: If a -tagsFromFile option is used, tags in the
2162
- *ALTFILE* argument come from the *SRCFILE* that applies to the
2163
- first argument accessing tags from the corresponding "FileNUM"
2164
- group.
2165
-
2166
- User-defined Composite tags may access tags from alternate files
2167
- using the appropriate (case-sensitive) family 8 group name.
2168
-
2169
- The -fast option, if used, also applies to processing of the
2170
- alternate files.
2171
-
2172
- -list_dir
2173
- List directories themselves instead of their contents. This option
2174
- effectively causes directories to be treated as normal files when
2175
- reading and writing. For example, with this option the output of
2176
- the "ls -la" command on Mac/Linux may be approximated by this
2177
- exiftool command:
2178
-
2179
- exiftool -list_dir -T -ls-l -api systemtags -fast5 .* *
2180
-
2181
- (The -T option formats the output in tab-separated columns, -ls-l
2182
- is a shortcut tag, the API SystemTags option is required to extract
2183
- some necessary tags, and the -fast5 option is added for speed since
2184
- only system tags are being extracted.)
2185
-
2186
- -srcfile *FMT*
2187
- Specify a different source file to be processed based on the name
2188
- of the original *FILE*. This may be useful in some special
2189
- situations for processing related preview images or sidecar files.
2190
- See the -w option for a description of the *FMT* syntax. Note that
2191
- file name *FMT* strings for all options are based on the original
2192
- *FILE* specified from the command line, not the name of the source
2193
- file specified by -srcfile.
2194
-
2195
- For example, to copy metadata from NEF files to the corresponding
2196
- JPG previews in a directory where other JPG images may exist:
2197
-
2198
- exiftool -ext nef -tagsfromfile @ -srcfile %d%f.jpg dir
2199
-
2200
- If more than one -srcfile option is specified, the files are tested
2201
- in order and the first existing source file is processed. If none
2202
- of the source files already exist, then exiftool uses the first
2203
- -srcfile specified.
2204
-
2205
- A *FMT* of "@" may be used to represent the original *FILE*, which
2206
- may be useful when specifying multiple -srcfile options (eg. to
2207
- fall back to processing the original *FILE* if no sidecar exists).
2208
-
2209
- When this option is used, two special UserParam tags
2210
- (OriginalFileName and OriginalDirectory) are generated to allow
2211
- access to the original *FILE* name and directory.
2212
-
2213
- -stay_open *FLAG*
2214
- If *FLAG* is 1 or "True" (case insensitive), causes exiftool keep
2215
- reading from the -@ *ARGFILE* even after reaching the end of file.
2216
- This feature allows calling applications to pre-load exiftool, thus
2217
- avoiding the overhead of loading exiftool for each command. The
2218
- procedure is as follows:
2219
-
2220
- 1) Execute "exiftool -stay_open True -@ *ARGFILE*", where *ARGFILE*
2221
- is the name of an existing (possibly empty) argument file or "-" to
2222
- pipe arguments from the standard input.
2223
-
2224
- 2) Write exiftool command-line arguments to *ARGFILE*, one argument
2225
- per line (see the -@ option for details).
2226
-
2227
- 3) Write "-execute\n" to *ARGFILE*, where "\n" represents a newline
2228
- sequence. (Note: You may need to flush your write buffers here if
2229
- using buffered output.) ExifTool will then execute the command with
2230
- the arguments received up to this point, send a "{ready}" message
2231
- to stdout when done (unless the -q or -T option is used), and
2232
- continue trying to read arguments for the next command from
2233
- *ARGFILE*. To aid in command/response synchronization, any number
2234
- appended to the -execute option is echoed in the "{ready}" message.
2235
- For example, "-execute613" results in "{ready613}". When this
2236
- number is added, -q no longer suppresses the "{ready}" message.
2237
- (Also, see the -echo3 and -echo4 options for additional ways to
2238
- pass signals back to your application.)
2239
-
2240
- 4) Repeat steps 2 and 3 for each command.
2241
-
2242
- 5) Write "-stay_open\nFalse\n" (or "-stay_open\n0\n") to *ARGFILE*
2243
- when done. This will cause exiftool to process any remaining
2244
- command-line arguments then exit normally.
2245
-
2246
- The input *ARGFILE* may be changed at any time before step 5 above
2247
- by writing the following lines to the currently open *ARGFILE*:
2248
-
2249
- -stay_open
2250
- True
2251
- -@
2252
- NEWARGFILE
2253
-
2254
- This causes *ARGFILE* to be closed, and *NEWARGFILE* to be kept
2255
- open. (Without the -stay_open here, exiftool would have returned to
2256
- reading arguments from *ARGFILE* after reaching the end of
2257
- *NEWARGFILE*.)
2258
-
2259
- Note: When writing arguments to a disk file there is a delay of up
2260
- to 0.01 seconds after writing "-execute\n" before exiftool starts
2261
- processing the command. This delay may be avoided by sending a CONT
2262
- signal to the exiftool process immediately after writing
2263
- "-execute\n". (There is no associated delay when writing arguments
2264
- via a pipe with "-@ -", so the signal is not necessary when using
2265
- this technique.)
2266
-
2267
- -userParam *PARAM[[^]=[VAL]]*
2268
- Set user parameter. *PARAM* is an arbitrary user parameter name.
2269
- This is an interface to the API UserParam option (see the
2270
- Image::ExifTool Options documentation), and provides a method to
2271
- access user-defined parameters in arguments to the -if and -p
2272
- options as if they were any other tag. Appending a hash tag ("#")
2273
- to *PARAM* (eg. "-userParam MyTag#=yes") also causes the parameter
2274
- to be extracted as a normal tag in the UserParam group. Similar to
2275
- the -api option, the parameter value is set to 1 if *=VAL* is
2276
- omitted, undef if just *VAL* is omitted with "=", or an empty
2277
- string if *VAL* is omitted with "^=".
2278
-
2279
- exiftool -p "$test from $filename" -userparam test=Hello FILE
2280
-
2281
- Advanced formatting feature
2282
- An advanced formatting feature allows modification of the value of any
2283
- tag interpolated within a -if or -p option argument, or a -tagsFromFile
2284
- redirection string. Tag names within these strings are prefixed by a "$"
2285
- symbol, and an arbitrary Perl expression may be applied to the tag value
2286
- by placing braces around the tag name and inserting the expression after
2287
- the name, separated by a semicolon (ie. "${TAG;EXPR}"). The expression
2288
- acts on the value of the tag through the default input variable ($_),
2289
- and has access to the full ExifTool API through the current ExifTool
2290
- object ($self) and the tag key ($tag). It may contain any valid Perl
2291
- code, including translation ("tr///") and substitution ("s///")
2292
- operations, but note that braces within the expression must be balanced.
2293
- The example below prints the camera Make with spaces translated to
2294
- underlines, and multiple consecutive underlines replaced by a single
2295
- underline:
2296
-
2297
- exiftool -p "${make;tr/ /_/;s/__+/_/g}" image.jpg
2298
-
2299
- An "@" may be added after the tag name to make the expression act on
2300
- individual list items for list-type tags, simplifying list processing.
2301
- Set $_ to undef to remove an item from the list. As an example, the
2302
- following command returns all subjects not containing the string "xxx":
2303
-
2304
- exiftool -p "${subject@;$_=undef if /xxx/}" image.jpg
2305
-
2306
- A default expression of "tr(/\\?*:|"<>\0)()d" is assumed if the
2307
- expression is empty (ie. "${TAG;}"). This removes the characters / \ ? *
2308
- : | < > and null from the printed value. (These characters are illegal
2309
- in Windows file names, so this feature is useful if tag values are used
2310
- in file names.)
2311
-
2312
- Helper functions
2313
- Note that function names are case sensitive.
2314
-
2315
- "DateFmt"
2316
-
2317
- Simplifies reformatting of individual date/time values. This function
2318
- acts on a standard EXIF-formatted date/time value in $_ and formats it
2319
- according to the specified format string (see the -d option). To avoid
2320
- trying to reformat an already-formatted date/time value, a "#" must be
2321
- added to the tag name (as in the example below) if the -d option is also
2322
- used. For example:
2323
-
2324
- exiftool -p "${createdate#;DateFmt('%Y-%m-%d_%H%M%S')}" a.jpg
2325
-
2326
- "ShiftTime"
2327
-
2328
- Shifts EXIF-formatted date/time string by a specified amount. Start with
2329
- a leading minus sign to shift backwards in time. See
2330
- Image::ExifTool::Shift.pl for details about shift syntax. For example,
2331
- to shift a date/time value back by one year:
2332
-
2333
- exiftool -p "${createdate;ShiftTime('-1:0:0 0')}" a.jpg
2334
-
2335
- "NoDups"
2336
-
2337
- Removes duplicate items from a list with a separator specified by the
2338
- -sep option. This function is most useful when copying list-type tags.
2339
- For example, the following command may be used to remove duplicate
2340
- Keywords:
2341
-
2342
- exiftool -sep "##" "-keywords<${keywords;NoDups}" a.jpg
2343
-
2344
- The -sep option is necessary to split the string back into individual
2345
- list items when writing to a list-type tag.
2346
-
2347
- An optional flag argument may be set to 1 to cause "NoDups" to set $_ to
2348
- undef if no duplicates existed, thus preventing the file from being
2349
- rewritten unnecessarily:
2350
-
2351
- exiftool -sep "##" "-keywords<${keywords;NoDups(1)}" a.jpg
2352
-
2353
- ExifTool 12.64 adds an API NoDups option which makes the NoDups helper
2354
- function largely redundant, with all the functionality except the
2355
- ability to avoid rewriting the file if there are no duplicates, but with
2356
- the advantage the duplicates may be removed when accumulating list items
2357
- from multiple sources. An equivalent to the above commands using this
2358
- feature would be:
2359
-
2360
- exiftool -tagsfromfile @ -keywords -api nodups a.jpg
2361
-
2362
- "SetTags"
2363
-
2364
- Used to set tags in extracted images. With no arguments, copies all tags
2365
- from the source file to the embedded image:
2366
-
2367
- exiftool -p '${previewimage;SetTags}' -b a.arw > preview.jpg
2368
-
2369
- Arguments may be added to copy or set specific tags. Arguments take
2370
- exactly the same form as those on the command line when copying or
2371
- writing tags, but without the leading dash. For example:
2372
-
2373
- exiftool -p '${previewimage;SetTags("comment=test","title<filename")}' ...
2374
-
2375
- WINDOWS UNICODE FILE NAMES
2376
- In Windows, command-line arguments are specified using the current code
2377
- page and are recoded automatically to the system code page. This
2378
- recoding is not done for arguments in ExifTool arg files, so by default
2379
- filenames in arg files use the system code page. Unfortunately, these
2380
- code pages are not complete character sets, so not all file names may be
2381
- represented.
2382
-
2383
- ExifTool 9.79 and later allow the file name encoding to be specified
2384
- with "-charset filename=CHARSET", where "CHARSET" is the name of a valid
2385
- ExifTool character set, preferably "UTF8" (see the -charset option for a
2386
- complete list). Setting this triggers the use of Windows wide-character
2387
- i/o routines, thus providing support for most Unicode file names (see
2388
- note 4). But note that it is not trivial to pass properly encoded file
2389
- names on the Windows command line (see
2390
- <https://exiftool.org/faq.html#Q18> for details), so placing them in a
2391
- UTF-8 encoded -@ argfile and using "-charset filename=utf8" is
2392
- recommended if possible.
2393
-
2394
- A warning is issued if a specified filename contains special characters
2395
- and the filename character set was not provided. However, the warning
2396
- may be disabled by setting "-charset filename=""", and ExifTool may
2397
- still function correctly if the system code page matches the character
2398
- set used for the file names.
2399
-
2400
- When a directory name is provided, the file name encoding need not be
2401
- specified (unless the directory name contains special characters), and
2402
- ExifTool will automatically use wide-character routines to scan the
2403
- directory.
2404
-
2405
- The filename character set applies to the *FILE* arguments as well as
2406
- filename arguments of -@, -geotag, -o, -p, -srcfile, -tagsFromFile,
2407
- -csv=, -j= and -*TAG*<=. However, it does not apply to the -config
2408
- filename, which always uses the system character set. The "-charset
2409
- filename=" option must come before the -@ option to be effective, but
2410
- the order doesn't matter with respect to other options.
2411
-
2412
- Notes:
2413
-
2414
- 1) FileName and Directory tag values still use the same encoding as
2415
- other tag values, and are converted to/from the filename character set
2416
- when writing/reading if specified.
2417
-
2418
- 2) Unicode support is not yet implemented for other Windows-based
2419
- systems like Cygwin.
2420
-
2421
- 3) See "WRITING READ-ONLY FILES" below for a note about editing
2422
- read-only files with Unicode names.
2423
-
2424
- 4) Unicode file names with surrogate pairs (code points over U+FFFF)
2425
- still cause problems.
2426
-
2427
- WRITING READ-ONLY FILES
2428
- In general, ExifTool may be used to write metadata to read-only files
2429
- provided that the user has write permission in the directory. However,
2430
- there are three cases where file write permission is also required:
2431
-
2432
- 1) When using the -overwrite_original_in_place option.
2433
-
2434
- 2) When writing only pseudo System tags (eg. FileModifyDate).
2435
-
2436
- 3) On Windows if the file has Unicode characters in its name, and a) the
2437
- -overwrite_original option is used, or b) the "_original" backup already
2438
- exists.
2439
-
2440
- Hidden files in Windows behave as read-only files when attempting to
2441
- write any real tags to the file -- an error is generated when using the
2442
- -overwrite_original_in_place, otherwise writing should be successful and
2443
- the hidden attribute will be removed. But the -if option may be used to
2444
- avoid processing hidden files (provided Win32API::File is available):
2445
-
2446
- exiftool -if "$fileattributes !~ /Hidden/" ...
2447
-
2448
- READING EXAMPLES
2449
- The commands below are appropriate for the Windows cmd shell, which is
2450
- recommended. If running in PowerShell, single quotes would be needed
2451
- instead of double quotes around arguments containing a dollar sign.
2452
-
2453
- exiftool -a -u -g1 a.jpg
2454
- Print all meta information in an image, including duplicate and
2455
- unknown tags, sorted by group (for family 1). For performance
2456
- reasons, this command may not extract all available metadata.
2457
- (Metadata in embedded documents, metadata extracted by external
2458
- utilities, and metadata requiring excessive processing time may not
2459
- be extracted). Add "-ee3" and "-api RequestAll=3" to the command to
2460
- extract absolutely everything available.
2461
-
2462
- exiftool -common dir
2463
- Print common meta information for all images in "dir". "-common" is
2464
- a shortcut tag representing common EXIF meta information.
2465
-
2466
- exiftool -T -createdate -aperture -shutterspeed -iso dir > out.txt
2467
- List specified meta information in tab-delimited column form for
2468
- all images in "dir" to an output text file named "out.txt".
2469
-
2470
- exiftool -s -ImageSize -ExposureTime b.jpg
2471
- Print ImageSize and ExposureTime tag names and values.
2472
-
2473
- exiftool -l -canon c.jpg d.jpg
2474
- Print standard Canon information from two image files.
2475
-
2476
- exiftool -r -w .txt -common pictures
2477
- Recursively extract common meta information from files in
2478
- "pictures" directory, writing text output to ".txt" files with the
2479
- same names.
2480
-
2481
- exiftool -b -ThumbnailImage image.jpg > thumbnail.jpg
2482
- Save thumbnail image from "image.jpg" to a file called
2483
- "thumbnail.jpg".
2484
-
2485
- exiftool -b -JpgFromRaw -w _JFR.JPG -ext NEF -r .
2486
- Recursively extract JPG image from all Nikon NEF files in the
2487
- current directory, adding "_JFR.JPG" for the name of the output JPG
2488
- files.
2489
-
2490
- exiftool -a -b -W %d%f_%t%-c.%s -preview:all dir
2491
- Extract all types of preview images (ThumbnailImage, PreviewImage,
2492
- JpgFromRaw, etc.) from files in directory "dir", adding the tag
2493
- name to the output preview image file names.
2494
-
2495
- exiftool -d "%r %a, %B %e, %Y" -DateTimeOriginal -S -s -ext jpg .
2496
- Print formatted date/time for all JPG files in the current
2497
- directory.
2498
-
2499
- exiftool -IFD1:XResolution -IFD1:YResolution image.jpg
2500
- Extract image resolution from EXIF IFD1 information (thumbnail
2501
- image IFD).
2502
-
2503
- exiftool "-*resolution*" image.jpg
2504
- Extract all tags with names containing the word "Resolution" from
2505
- an image.
2506
-
2507
- exiftool -xmp:author:all -a image.jpg
2508
- Extract all author-related XMP information from an image.
2509
-
2510
- exiftool -xmp -b a.jpg > out.xmp
2511
- Extract complete XMP data record intact from "a.jpg" and write it
2512
- to "out.xmp" using the special "XMP" tag (see the Extra tags in
2513
- Image::ExifTool::TagNames).
2514
-
2515
- exiftool -p "$filename has date $dateTimeOriginal" -q -f dir
2516
- Print one line of output containing the file name and
2517
- DateTimeOriginal for each image in directory "dir".
2518
-
2519
- exiftool -ee3 -p "$gpslatitude, $gpslongitude, $gpstimestamp" a.m2ts
2520
- Extract all GPS positions from an AVCHD video.
2521
-
2522
- exiftool -icc_profile -b -w icc image.jpg
2523
- Save complete ICC_Profile from an image to an output file with the
2524
- same name and an extension of ".icc".
2525
-
2526
- exiftool -htmldump -w tmp/%f_%e.html t/images
2527
- Generate HTML pages from a hex dump of EXIF information in all
2528
- images from the "t/images" directory. The output HTML files are
2529
- written to the "tmp" directory (which is created if it didn't
2530
- exist), with names of the form "FILENAME_EXT.html".
2531
-
2532
- exiftool -a -b -ee -embeddedimage -W Image_%.3g3.%s file.pdf
2533
- Extract embedded JPG and JP2 images from a PDF file. The output
2534
- images will have file names like "Image_#.jpg" or "Image_#.jp2",
2535
- where "#" is the ExifTool family 3 embedded document number for the
2536
- image.
2537
-
2538
- WRITING EXAMPLES
2539
- Note that quotes are necessary around arguments which contain certain
2540
- special characters such as ">", "<" or any white space. These quoting
2541
- techniques are shell dependent, but the examples below will work in
2542
- the Windows CMD shell.
2543
-
2544
- exiftool -Comment="This is a new comment" dst.jpg
2545
- Write new comment to a JPG image (replaces any existing comment).
2546
-
2547
- exiftool -comment= -o newdir -ext jpg .
2548
- Remove comment from all JPG images in the current directory,
2549
- writing the modified images to a new directory.
2550
-
2551
- exiftool -keywords=EXIF -keywords=editor dst.jpg
2552
- Replace existing keyword list with two new keywords ("EXIF" and
2553
- "editor").
2554
-
2555
- exiftool -Keywords+=word -o newfile.jpg src.jpg
2556
- Copy a source image to a new file, and add a keyword ("word") to
2557
- the current list of keywords.
2558
-
2559
- exiftool -exposurecompensation+=-0.5 a.jpg
2560
- Decrement the value of ExposureCompensation by 0.5 EV. Note that +=
2561
- with a negative value is used for decrementing because the -=
2562
- operator is used for conditional deletion (see next example).
2563
-
2564
- exiftool -credit-=xxx dir
2565
- Delete Credit information from all files in a directory where the
2566
- Credit value was "xxx".
2567
-
2568
- exiftool -xmp:description-de="k&uuml;hl" -E dst.jpg
2569
- Write alternate language for XMP:Description, using HTML character
2570
- escaping to input special characters.
2571
-
2572
- exiftool -all= dst.jpg
2573
- Delete all meta information from an image. Note: You should NOT do
2574
- this to RAW images (except DNG) since proprietary RAW image formats
2575
- often contain information in the makernotes that is necessary for
2576
- converting the image.
2577
-
2578
- exiftool -all= -comment="lonely" dst.jpg
2579
- Delete all meta information from an image and add a comment back
2580
- in. (Note that the order is important: -comment="lonely" -all=
2581
- would also delete the new comment.)
2582
-
2583
- exiftool -all= --jfif:all dst.jpg
2584
- Delete all meta information except JFIF group from an image.
2585
-
2586
- exiftool -Photoshop:All= dst.jpg
2587
- Delete Photoshop meta information from an image (note that the
2588
- Photoshop information also includes IPTC).
2589
-
2590
- exiftool -r -XMP-crss:all= DIR
2591
- Recursively delete all XMP-crss information from images in a
2592
- directory.
2593
-
2594
- exiftool "-ThumbnailImage<=thumb.jpg" dst.jpg
2595
- Set the thumbnail image from specified file (Note: The quotes are
2596
- necessary to prevent shell redirection).
2597
-
2598
- exiftool "-JpgFromRaw<=%d%f_JFR.JPG" -ext NEF -r .
2599
- Recursively write JPEG images with filenames ending in "_JFR.JPG"
2600
- to the JpgFromRaw tag of like-named files with extension ".NEF" in
2601
- the current directory. (This is the inverse of the "-JpgFromRaw"
2602
- command of the "READING EXAMPLES" section above.)
2603
-
2604
- exiftool -DateTimeOriginal-="0:0:0 1:30:0" dir
2605
- Adjust original date/time of all images in directory "dir" by
2606
- subtracting one hour and 30 minutes. (This is equivalent to
2607
- "-DateTimeOriginal-=1.5". See Image::ExifTool::Shift.pl for
2608
- details.)
2609
-
2610
- exiftool -createdate+=3 -modifydate+=3 a.jpg b.jpg
2611
- Add 3 hours to the CreateDate and ModifyDate timestamps of two
2612
- images.
2613
-
2614
- exiftool -AllDates+=1:30 -if "$make eq 'Canon'" dir
2615
- Shift the values of DateTimeOriginal, CreateDate and ModifyDate
2616
- forward by 1 hour and 30 minutes for all Canon images in a
2617
- directory. (The AllDates tag is provided as a shortcut for these
2618
- three tags, allowing them to be accessed via a single tag.)
2619
-
2620
- exiftool -xmp:city=Kingston image1.jpg image2.nef
2621
- Write a tag to the XMP group of two images. (Without the "xmp:"
2622
- this tag would get written to the IPTC group since "City" exists in
2623
- both, and IPTC is preferred by default.)
2624
-
2625
- exiftool -LightSource-="Unknown (0)" dst.tiff
2626
- Delete "LightSource" tag only if it is unknown with a value of 0.
2627
-
2628
- exiftool -whitebalance-=auto -WhiteBalance=tung dst.jpg
2629
- Set "WhiteBalance" to "Tungsten" only if it was previously "Auto".
2630
-
2631
- exiftool -comment-= -comment="new comment" a.jpg
2632
- Write a new comment only if the image doesn't have one already.
2633
-
2634
- exiftool -o %d%f.xmp dir
2635
- Create XMP meta information data files for all images in "dir".
2636
-
2637
- exiftool -o test.xmp -owner=Phil -title="XMP File"
2638
- Create an XMP data file only from tags defined on the command line.
2639
-
2640
- exiftool "-ICC_Profile<=%d%f.icc" image.jpg
2641
- Write ICC_Profile to an image from a ".icc" file of the same name.
2642
-
2643
- exiftool -hierarchicalkeywords="{keyword=one,children={keyword=B}}"
2644
- Write structured XMP information. See
2645
- <https://exiftool.org/struct.html> for more details.
2646
-
2647
- exiftool -trailer:all= image.jpg
2648
- Delete any trailer found after the end of image (EOI) in a JPEG
2649
- file. A number of digital cameras store a large PreviewImage after
2650
- the JPEG EOI, and the file size may be reduced significantly by
2651
- deleting this trailer. See the JPEG Tags documentation for a list
2652
- of recognized JPEG trailers.
2653
-
2654
- COPYING EXAMPLES
2655
- These examples demonstrate the ability to copy tag values between files.
2656
-
2657
- exiftool -tagsFromFile src.cr2 dst.jpg
2658
- Copy the values of all writable tags from "src.cr2" to "dst.jpg",
2659
- writing the information to same-named tags in the preferred groups.
2660
-
2661
- exiftool -TagsFromFile src.jpg -all:all dst.jpg
2662
- Copy the values of all writable tags from "src.jpg" to "dst.jpg",
2663
- preserving the original tag groups.
2664
-
2665
- exiftool -all= -tagsfromfile src.jpg -exif:all dst.jpg
2666
- Erase all meta information from "dst.jpg" image, then copy EXIF
2667
- tags from "src.jpg".
2668
-
2669
- exiftool -exif:all= -tagsfromfile @ -all:all -unsafe bad.jpg
2670
- Rebuild all EXIF meta information from scratch in an image. This
2671
- technique can be used in JPEG images to repair corrupted EXIF
2672
- information which otherwise could not be written due to errors. The
2673
- "Unsafe" tag is a shortcut for unsafe EXIF tags in JPEG images
2674
- which are not normally copied. See the tag name documentation for
2675
- more details about unsafe tags.
2676
-
2677
- exiftool -Tagsfromfile a.jpg out.xmp
2678
- Copy meta information from "a.jpg" to an XMP data file. If the XMP
2679
- data file "out.xmp" already exists, it will be updated with the new
2680
- information. Otherwise the XMP data file will be created. Only
2681
- metadata-only files may be created like this (files containing
2682
- images may be edited but not created). See "WRITING EXAMPLES" above
2683
- for another technique to generate XMP files.
2684
-
2685
- exiftool -tagsFromFile a.jpg -XMP:All= -ThumbnailImage= -m b.jpg
2686
- Copy all meta information from "a.jpg" to "b.jpg", deleting all XMP
2687
- information and the thumbnail image from the destination.
2688
-
2689
- exiftool -TagsFromFile src.jpg -title -author=Phil dst.jpg
2690
- Copy title from one image to another and set a new author name.
2691
-
2692
- exiftool -TagsFromFile a.jpg -ISO -TagsFromFile b.jpg -comment dst.jpg
2693
- Copy ISO from one image and Comment from another image to a
2694
- destination image.
2695
-
2696
- exiftool -tagsfromfile src.jpg -exif:all --subifd:all dst.jpg
2697
- Copy only the EXIF information from one image to another, excluding
2698
- SubIFD tags.
2699
-
2700
- exiftool "-FileModifyDate<DateTimeOriginal" dir
2701
- Use the original date from the meta information to set the same
2702
- file's filesystem modification date for all images in a directory.
2703
- (Note that "-TagsFromFile @" is assumed if no other -TagsFromFile
2704
- is specified when redirecting information as in this example.)
2705
-
2706
- exiftool -TagsFromFile src.jpg "-xmp:all<all" dst.jpg
2707
- Copy all possible information from "src.jpg" and write in XMP
2708
- format to "dst.jpg".
2709
-
2710
- exiftool "-Description<${FileName;s/\.[^.]*$//}" dir
2711
- Set the image Description from the file name after removing the
2712
- extension. This example uses the "Advanced formatting feature" to
2713
- perform a substitution operation to remove the last dot and
2714
- subsequent characters from the file name.
2715
-
2716
- exiftool -@ iptc2xmp.args -iptc:all= a.jpg
2717
- Translate IPTC information to XMP with appropriate tag name
2718
- conversions, and delete the original IPTC information from an
2719
- image. This example uses iptc2xmp.args, which is a file included
2720
- with the ExifTool distribution that contains the required arguments
2721
- to convert IPTC information to XMP format. Also included with the
2722
- distribution are xmp2iptc.args (which performs the inverse
2723
- conversion) and a few more .args files for other conversions
2724
- between EXIF, IPTC and XMP.
2725
-
2726
- exiftool -tagsfromfile %d%f.CR2 -r -ext JPG dir
2727
- Recursively rewrite all "JPG" images in "dir" with information
2728
- copied from the corresponding "CR2" images in the same directories.
2729
-
2730
- exiftool "-keywords+<make" image.jpg
2731
- Add camera make to list of keywords.
2732
-
2733
- exiftool "-comment<ISO=$exif:iso Exposure=${shutterspeed}" dir
2734
- Set the Comment tag of all images in "dir" from the values of the
2735
- EXIF:ISO and ShutterSpeed tags. The resulting comment will be in
2736
- the form "ISO=100 Exposure=1/60".
2737
-
2738
- exiftool -TagsFromFile src.jpg -icc_profile dst.jpg
2739
- Copy ICC_Profile from one image to another.
2740
-
2741
- exiftool -TagsFromFile src.jpg -all:all dst.mie
2742
- Copy all meta information in its original form from a JPEG image to
2743
- a MIE file. The MIE file will be created if it doesn't exist. This
2744
- technique can be used to store the metadata of an image so it can
2745
- be inserted back into the image (with the inverse command) later in
2746
- a workflow.
2747
-
2748
- exiftool -o dst.mie -all:all src.jpg
2749
- This command performs exactly the same task as the command above,
2750
- except that the -o option will not write to an output file that
2751
- already exists.
2752
-
2753
- exiftool -b -jpgfromraw -w %d%f_%ue.jpg -execute -b -previewimage -w
2754
- %d%f_%ue.jpg -execute -tagsfromfile @ -srcfile %d%f_%ue.jpg
2755
- -overwrite_original -common_args --ext jpg DIR
2756
- [Advanced] Extract JpgFromRaw or PreviewImage from all but JPG
2757
- files in DIR, saving them with file names like "image_EXT.jpg",
2758
- then add all meta information from the original files to the
2759
- extracted images. Here, the command line is broken into three
2760
- sections (separated by -execute options), and each is executed as
2761
- if it were a separate command. The -common_args option causes the
2762
- "--ext jpg DIR" arguments to be applied to all three commands, and
2763
- the -srcfile option allows the extracted JPG image to be the source
2764
- file for the third command (whereas the RAW files are the source
2765
- files for the other two commands).
2766
-
2767
- RENAMING EXAMPLES
2768
- By writing the "FileName" and "Directory" tags, files are renamed and/or
2769
- moved to new directories. This can be particularly useful and powerful
2770
- for organizing files by date when combined with the -d option. New
2771
- directories are created as necessary, but existing files will not be
2772
- overwritten. The format codes %d, %f and %e may be used in the new file
2773
- name to represent the directory, name and extension of the original
2774
- file, and %c may be used to add a copy number if the file already exists
2775
- (see the -w option for details). Note that if used within a date format
2776
- string, an extra '%' must be added to pass these codes through the
2777
- date/time parser. (And further note that in a Windows batch file, all
2778
- '%' characters must also be escaped, so in this extreme case "%%%%f" is
2779
- necessary to pass a simple "%f" through the two levels of parsing.) See
2780
- <https://exiftool.org/filename.html> for additional documentation and
2781
- examples.
2782
-
2783
- exiftool -filename=new.jpg dir/old.jpg
2784
- Rename "old.jpg" to "new.jpg" in directory "dir".
2785
-
2786
- exiftool -directory=%e dir
2787
- Move all files from directory "dir" into directories named by the
2788
- original file extensions.
2789
-
2790
- exiftool "-Directory<DateTimeOriginal" -d %Y/%m/%d dir
2791
- Move all files in "dir" into a directory hierarchy based on year,
2792
- month and day of "DateTimeOriginal". eg) This command would move
2793
- the file "dir/image.jpg" with a "DateTimeOriginal" of "2005:10:12
2794
- 16:05:56" to "2005/10/12/image.jpg".
2795
-
2796
- exiftool -o . "-Directory<DateTimeOriginal" -d %Y/%m/%d dir
2797
- Same effect as above except files are copied instead of moved.
2798
-
2799
- exiftool "-filename<%f_${model;}.%e" dir
2800
- Rename all files in "dir" by adding the camera model name to the
2801
- file name. The semicolon after the tag name inside the braces
2802
- causes characters which are invalid in Windows file names to be
2803
- deleted from the tag value (see the "Advanced formatting feature"
2804
- for an explanation).
2805
-
2806
- exiftool "-FileName<CreateDate" -d %Y%m%d_%H%M%S%%-c.%%e dir
2807
- Rename all images in "dir" according to the "CreateDate" date and
2808
- time, adding a copy number with leading '-' if the file already
2809
- exists ("%-c"), and preserving the original file extension (%e).
2810
- Note the extra '%' necessary to escape the filename codes (%c and
2811
- %e) in the date format string.
2812
-
2813
- exiftool -r "-FileName<CreateDate" -d %Y-%m-%d/%H%M_%%f.%%e dir
2814
- Both the directory and the filename may be changed together via the
2815
- "FileName" tag if the new "FileName" contains a '/'. The example
2816
- above recursively renames all images in a directory by adding a
2817
- "CreateDate" timestamp to the start of the filename, then moves
2818
- them into new directories named by date.
2819
-
2820
- exiftool "-FileName<${CreateDate}_$filenumber.jpg" -d %Y%m%d -ext jpg .
2821
- Set the filename of all JPG images in the current directory from
2822
- the CreateDate and FileNumber tags, in the form
2823
- "20060507_118-1861.jpg".
2824
-
2825
- GEOTAGGING EXAMPLES
2826
- ExifTool implements geotagging from GPS log files via 3 special tags:
2827
- Geotag (which for convenience is also implemented as an exiftool
2828
- option), Geosync and Geotime. The examples below highlight some
2829
- geotagging features. See <https://exiftool.org/geotag.html> for
2830
- additional documentation. (Note that geotagging from known GPS
2831
- coordinates is done by writing the GPS tags directly rather than using
2832
- the -geotag option.)
2833
-
2834
- exiftool -geotag track.log a.jpg
2835
- Geotag an image ("a.jpg") from position information in a GPS track
2836
- log ("track.log"). Since the "Geotime" tag is not specified, the
2837
- value of SubSecDateTimeOriginal (preferentially) or
2838
- DateTimeOriginal is used for geotagging. Local system time is
2839
- assumed unless the time contains a timezone.
2840
-
2841
- exiftool -geotag track.log -geolocate=geotag a.jpg
2842
- Geotag an image and also write geolocation information of the
2843
- nearest city (city name, state/province and country). Read here for
2844
- more details about the Geolocation feature:
2845
- <https://exiftool.org/geolocation.html#Write>
2846
-
2847
- exiftool -geotag t.log -geotime="2009:04:02 13:41:12-05:00" a.jpg
2848
- Geotag an image with the GPS position for a specific time.
2849
-
2850
- exiftool -geotag log.gpx "-xmp:geotime<createdate" dir
2851
- Geotag all images in directory "dir" with XMP tags instead of EXIF
2852
- tags, based on the image CreateDate.
2853
-
2854
- exiftool -geotag a.log -geosync=-20 dir
2855
- Geotag images in directory "dir", accounting for image timestamps
2856
- which were 20 seconds ahead of GPS.
2857
-
2858
- exiftool -geotag a.log -geosync=1.jpg -geosync=2.jpg dir
2859
- Geotag images using time synchronization from two previously
2860
- geotagged images (1.jpg and 2.jpg), synchronizing the image and GPS
2861
- times using a linear time drift correction.
2862
-
2863
- exiftool -geotag a.log "-geotime<${createdate}+01:00" dir
2864
- Geotag images in "dir" using CreateDate with the specified
2865
- timezone. If CreateDate already contained a timezone, then the
2866
- timezone specified on the command line is ignored.
2867
-
2868
- exiftool -geotag= a.jpg
2869
- Delete GPS tags which may have been added by the geotag feature.
2870
- Note that this does not remove all GPS tags -- to do this instead
2871
- use "-gps:all=".
2872
-
2873
- exiftool -xmp:geotag= a.jpg
2874
- Delete XMP GPS tags which were added by the geotag feature.
2875
-
2876
- exiftool -xmp:geotag=track.log a.jpg
2877
- Geotag an image with XMP tags, using the time from
2878
- SubSecDateTimeOriginal or DateTimeOriginal.
2879
-
2880
- exiftool -geotag a.log -geotag b.log -r dir
2881
- Combine multiple track logs and geotag an entire directory tree of
2882
- images.
2883
-
2884
- exiftool -geotag "tracks/*.log" -r dir
2885
- Read all track logs from the "tracks" directory.
2886
-
2887
- exiftool -p gpx.fmt dir > out.gpx
2888
- Generate a GPX track log from all images in directory "dir". This
2889
- example uses the "gpx.fmt" file included in the full ExifTool
2890
- distribution package and assumes that the images in "dir" have all
2891
- been previously geotagged.
2892
-
2893
- PIPING EXAMPLES
2894
- type a.jpg | exiftool -
2895
- Extract information from stdin.
2896
-
2897
- exiftool image.jpg -thumbnailimage -b | exiftool -
2898
- Extract information from an embedded thumbnail image.
2899
-
2900
- type a.jpg | exiftool -iptc:keywords+=fantastic - > b.jpg
2901
- Add an IPTC keyword in a pipeline, saving output to a new file.
2902
-
2903
- curl -s http://a.domain.com/bigfile.jpg | exiftool -fast -
2904
- Extract information from an image over the internet using the cURL
2905
- utility. The -fast option prevents exiftool from scanning for
2906
- trailer information, so only the meta information header is
2907
- transferred.
2908
-
2909
- exiftool a.jpg -thumbnailimage -b | exiftool -comment=wow - | exiftool
2910
- a.jpg "-thumbnailimage<=-"
2911
- Add a comment to an embedded thumbnail image. (Why anyone would
2912
- want to do this I don't know, but I've included this as an example
2913
- to illustrate the flexibility of ExifTool.)
2914
-
2915
- INTERRUPTING EXIFTOOL
2916
- Interrupting exiftool with a CTRL-C or SIGINT will not result in
2917
- partially written files or temporary files remaining on the hard disk.
2918
- The exiftool application traps SIGINT and defers it until the end of
2919
- critical processes if necessary, then does a proper cleanup before
2920
- exiting.
2921
-
2922
- EXIT STATUS
2923
- The exiftool application exits with a status of 0 on success, or 1 if an
2924
- error occurred, or 2 if all files failed the -if condition (for any of
2925
- the commands if -execute was used).
2926
-
2927
- AUTHOR
2928
- Copyright 2003-2025, Phil Harvey
2929
-
2930
- This is free software; you can redistribute it and/or modify it under
2931
- the same terms as Perl itself.
2932
-
2933
- SEE ALSO
2934
- Image::ExifTool(3pm), Image::ExifTool::TagNames(3pm),
2935
- Image::ExifTool::Shortcuts(3pm), Image::ExifTool::Shift.pl
2936
-