Exiftool Pod Documentation
Exiftool Pod Documentation
10 -- 1
EXIFTOOL(1) User Contributed Perl Documentation EXIFTOOL(1)
NAME
exiftool - Read and write meta information in files
SYNOPSIS
Reading
exiftool [_
O_P_
T_IO
__N_
S] [-_
T_A_
G...] [--_
T_A_
G...] _
F_I_
L_E...
Writing
exiftool [_
O_P_
T_I_
O_N_
S] -_
T_A_
G[+-<]=[_
V_A_
L_U_
E]... _
F_I_
L_E...
Copying
exiftool [_
O_P_
T_I_
ON__
S] -tagsFromFile _
S_R_
C_F_
I_L_
E [-_
S_R_
C_TA
__G[>_
D_
S_T_
T_A_
G]...] _
F_I_
L_E...
Other
exiftool [ -ver | -list[w
w|f
f|r
r|w
wf|g
g[_
N_U_
M]|d
d|x
x] ]
DESCRIPTION
A command-line interface to Image::ExifTool, used for reading and
writing meta information in a variety of file types. _F_
I_L_
E is one or
more source file names, directory names, or "-" for the standard input.
Metadata is read from source files and printed in readable form to the
console (or written to output text files with -w).
Note: If F__
I_L_
E is a directory name then only supported file types in
the directory are processed (in write mode only writable types are
processed). However, files may be specified by name, or the -ext
option may be used to force processing of files with any extension.
Hidden files in the directory are also processed. Adding the -r option
causes subdirectories to be processed recursively, but subdirectories
with names beginning with "." are skipped unless -r. is used.
File Types
------------+-------------+-------------+-------------+------------
360 r/w | DPX r | ITC r | ODP r | RIFF r
3FR r | DR4 r/w/c | J2C r | ODS r | RSRC r
3G2 r/w | DSS r | JNG r/w | ODT r | RTF r
3GP r/w | DV r | JP2 r/w | OFR r | RW2 r/w
A r | DVB r/w | JPEG r/w | OGG r | RWL r/w
AA r | DVR-MS r | JSON r | OGV r | RWZ r
AAE r | DYLIB r | K25 r | ONP r | RM r
AAX r/w | EIP r | KDC r | OPUS r | SEQ r
ACR r | EPS r/w | KEY r | ORF r/w | SKETCH r
AFM r | EPUB r | LA r | OTF r | SO r
AI r/w | ERF r/w | LFP r | PAC r | SR2 r/w
AIFF r | EXE r | LNK r | PAGES r | SRF r
APE r | EXIF r/w/c | LRV r/w | PBM r/w | SRW r/w
ARQ r/w | EXR r | M2TS r | PCD r | SVG r
ARW r/w | EXV r/w/c | M4A/V r/w | PCX r | SWF r
ASF r | F4A/V r/w | MACOS r | PDB r | THM r/w
AVI r | FFF r/w | MAX r | PDF r/w | TIFF r/w
-- ExifTool 12.10 -- 2
AVIF r/w | FITS r | MEF r/w | PEF r/w | TORRENT r
AZW r | FLA r | MIE r/w/c | PFA r | TTC r
BMP r | FLAC r | MIFF r | PFB r | TTF r
BPG r | FLIF r/w | MKA r | PFM r | TXT r
BTF r | FLV r | MKS r | PGF r | VCF r
CHM r | FPF r | MKV r | PGM r/w | VRD r/w/c
COS r | FPX r | MNG r/w | PLIST r | VSD r
CR2 r/w | GIF r/w | MOBI r | PICT r | WAV r
CR3 r/w | GPR r/w | MODD r | PMP r | WDP r/w
CRM r/w | GZ r | MOI r | PNG r/w | WEBP r
CRW r/w | HDP r/w | MOS r/w | PPM r/w | WEBM r
CS1 r/w | HDR r | MOV r/w | PPT r | WMA r
CSV r | HEIC r/w | MP3 r | PPTX r | WMV r
CZI r | HEIF r/w | MP4 r/w | PS r/w | WTV r
DCM r | HTML r | MPC r | PSB r/w | WV r
DCP r/w | ICC r/w/c | MPG r | PSD r/w | X3F r/w
DCR r | ICS r | MPO r/w | PSP r | XCF r
DFONT r | IDML r | MQV r/w | QTIF r/w | XLS r
DIVX r | IIQ r/w | MRW r/w | R3D r | XLSX r
DJVU r | IND r/w | MXF r | RA r | XMP r/w/c
DLL r | INSP r/w | NEF r/w | RAF r/w | ZIP r
DNG r/w | INSV r | NRW r/w | RAM r |
DOC r | INX r | NUMBERS r | RAR r |
DOCX r | ISO r | O r | RAW r/w |
Meta Information
----------------------+----------------------+---------------------
EXIF r/w/c | CIFF r/w | Ricoh RMETA r
GPS r/w/c | AFCP r/w | Picture Info r
IPTC r/w/c | Kodak Meta r/w | Adobe APP14 r
XMP r/w/c | FotoStation r/w | MPF r
MakerNotes r/w/c | PhotoMechanic r/w | Stim r
Photoshop IRB r/w/c | JPEG 2000 r | DPX r
ICC Profile r/w/c | DICOM r | APE r
MIE r/w/c | Flash r | Vorbis r
JFIF r/w/c | FlashPix r | SPIFF r
Ducky APP12 r/w/c | QuickTime r | DjVu r
PDF r/w/c | Matroska r | M2TS r
PNG r/w/c | MXF r | PE/COFF r
Canon VRD r/w/c | PrintIM r | AVCHD r
Nikon Capture r/w/c | FLAC r | ZIP r
GeoTIFF r/w/c | ID3 r | (and more)
OPTIONS
Case is not significant for any command-line option (including tag and
group names), except for single-character options when the
corresponding upper-case option exists. Many single-character options
have equivalent long-name versions (shown in brackets), and some
options have inverses which are invoked with a leading double-dash.
Unrecognized options are interpreted as tag names (for this reason,
multiple single-character options may NOT be combined into one
argument). Contrary to standard practice, options may appear after
source file names on the exiftool command line.
Option Overview
Tag operations
Processing control
Other options
Special features
Utilities
Advanced options
Option Details
T_
_ a_
g _
o_pe
__r_
a_t_
i_o_
n_s
-_
T_A_
G Extract information for the specified tag (eg. "-CreateDate").
Multiple tags may be specified in a single command. A tag name is
the handle by which a piece of information is referenced. See
Image::ExifTool::TagNames for documentation on available tag
names. A tag name may include leading group names separated by
colons (eg. "-EXIF:CreateDate", or "-Doc1:XMP:Creator"), and each
group name may be prefixed by a digit to specify family number
(eg. "-1IPTC:City"). Use the -listg option to list available
group names by family.
--_
T_A_
G
Exclude specified tag from extracted information. Same as the -x
option. Group names and wildcards are permitted as described
above for -TAG. Once excluded from the output, a tag may not be
re-included by a subsequent option. May also be used following a
-tagsFromFile option to exclude tags from being copied (when
redirecting to another tag, it is the source tag that should be
excluded), or to exclude groups from being deleted when deleting
all information (eg. "-all= --exif:all" deletes all but EXIF
information). But note that this will not exclude individual tags
from a group delete (unless a family 2 group is specified, see
note 4 below). Instead, individual tags may be recovered using
the -tagsFromFile option (eg. "-all= -tagsfromfile @ -artist").
-- ExifTool 12.10 -- 5
-_
T_A_
G[+-^]=
=[_
V_A_
LU__
E]
Write a new value for the specified tag (eg. "-comment=wow"), or
delete the tag if no V
__A_
L_U_
E is given (eg. "-comment="). "+=" and
"-=" are used to add or remove existing entries from a list, or to
shift date/time values (see Image::ExifTool::Shift.pl and note 6
below for more details). "+=" may also be used to increment
numerical values (or decrement if _ V_
A_L_
U_E is negative), and "-=" may
be used to conditionally delete or replace a tag (see "WRITING
EXAMPLES" for examples). "^=" is used to write an empty string
instead of deleting the tag when no _ V_
A_L_
U_E is given, but otherwise
it is equivalent to "=".
_
T_A_
G may contain one or more leading family 0, 1, 2 or 7 group
names, prefixed by optional family numbers, and separated colons.
If no group name is specified, the tag is created in the preferred
group, and updated in any other location where a same-named tag
already exists. The preferred group is the first group in the
following list where _T_
A_G is valid: 1) EXIF, 2) IPTC, 3) XMP.
The wildcards "*" and "?" may be used in tag names to assign the
same value to multiple tags. When specified with wildcards,
"unsafe" tags are not written. A tag name of "All" is equivalent
to "*" (except that it doesn't require quoting, while arguments
with wildcards do on systems with shell globbing), and is often
used when deleting all metadata (ie. "-All=") or an entire group
(eg. "-XMP-dc:All=", see note 4 below). Note that not all groups
are deletable, and that the JPEG APP14 "Adobe" group is not
removed by default with "-All=" because it may affect the
appearance of the image. However, color space information is
removed, so the colors may be affected (but this may be avoided by
copying back the tags defined by the ColorSpaceTags shortcut).
Use the -listd option for a complete list of deletable groups, and
see note 5 below regarding the "APP" groups. Also, within an
image some groups may be contained within others, and these groups
are removed if the containing group is deleted:
JPEG Image:
- Deleting EXIF or IFD0 also deletes ExifIFD, GlobParamIFD,
GPS, IFD1, InteropIFD, MakerNotes, PrintIM and SubIFD.
- Deleting ExifIFD also deletes InteropIFD and MakerNotes.
- Deleting Photoshop also deletes IPTC.
TIFF Image:
- Deleting EXIF only removes ExifIFD which also deletes
InteropIFD and MakerNotes.
Notes:
-_
T_A_
G<=_
D_A_
TF__
I_L_
E or -_
T_A_
G<=_
F_M_
T
Set the value of a tag from the contents of file _ D_
A_T_
F_I_
L_E. The
file name may also be given by a _ F_M_
T string where %d, %f and %e
represent the directory, file name and extension of the original
F_
_ I_
L_E (see the -w option for more details). Note that quotes are
required around this argument to prevent shell redirection since
it contains a "<" symbol. If _ D_
A_T_
F_I_
L_E/_
F_M_
T is not provided, the
effect is the same as "-TAG=", and the tag is simply deleted.
"+<=" or "-<=" may also be used to add or delete specific list
entries, or to shift date/time values.
-tagsFromFile _
S_R_
C_F_
I_L_
E or _
F_M_
T
Copy tag values from _ S_
R_C_
F_I_
L_E to F
__I_
L_E. Tag names on the command
line after this option specify the tags to be copied, or excluded
from the copy. Wildcards are permitted in these tag names. If no
tags are specified, then all possible tags (see note 1 below) from
the source file are copied to same-named tags in the preferred
location of the output file (the same as specifying "-all"). More
than one -tagsFromFile option may be used to copy tags from
multiple files.
__
S R_
C_FI
__L_
E may be the same as _
F_I_
L_E to move information around within
a single file. In this case, "@" may be used to represent the
source file (ie. "-tagsFromFile @"), permitting this feature to be
used for batch processing multiple files. Specified tags are then
copied from each file in turn as it is rewritten. For advanced
batch use, the source file name may also be specified using a _ F_
M_T
string in which %d, %f and %e represent the directory, file name
and extension of _ F_
I_L_
E. (eg. the current _ F_
I_L_
E would be represented
by "%d%f.%e", with the same effect as "@"). See the -w option for
F_
_ MT
_ string examples.
Notes:
-x _
T_A_
G (-
-exclude)
Exclude the specified tag. There may be multiple -x options.
This has the same effect as --_T_
A_G on the command line. See the
--_
TA__
G documentation above for a complete description.
I_
_ n_
pu__
t_-_
o_ut
__p_
u_t _
t_e_
x_t f
__o_
r_m_
a_t_
t_i_
n_g
Note that trailing spaces are removed from extracted values for most
output text formats. The exceptions are "-b", "-csv", "-j" and "-X".
-args (-
-argFormat)
Output information in the form of exiftool arguments, suitable for
use with the -@ option when writing. May be combined with the -G
option to include group names. This feature may be used to
effectively copy tags between images, but allows the metadata to
be altered by editing the intermediate file ("out.args" in this
example):
-b (-
-binary)
Output requested metadata in binary format without tag names or
descriptions. This option is mainly used for extracting embedded
images or other binary data, but it may also be useful for some
text strings since control characters (such as newlines) are not
replaced by '.' as they are in the default output. By default,
list items are separated by a newline when extracted with the -b
option, but this may be changed (see the -sep option for details).
May be combined with "-j", "-php" or "-X" to extract binary data
in JSON, PHP or XML format, but note that "unsafe" tags must be
specified explicitly to be extracted as binary in these formats.
-c _
F_M_
T (-
-coordFormat)
Set the print format for GPS coordinates. _F_
M_T uses the same
syntax as a "printf" format string. The specifiers correspond to
degrees, minutes and seconds in that order, but minutes and
seconds are optional. For example, the following table gives the
output for the same coordinate using various formats:
FMT Output
------------------- ------------------
"%d deg %d' %.2f"\" 54 deg 59' 22.80" (default for reading)
"%d %d %.8f" 54 59 22.80000000 (default for copying)
"%d deg %.4f min" 54 deg 59.3800 min
"%.6f degrees" 54.989667 degrees
Notes:
__
T Y_
P_E may be "FileName" to specify the encoding of file names on
the command line (ie. _ F_
I_L_
E arguments). In Windows, this triggers
use of wide-character i/o routines, thus providing support for
Unicode file names. See the "WINDOWS UNICODE FILE NAMES" section
below for details.
Other values of _
T_Y_
P_E listed below are used to specify the internal
encoding of various meta information formats.
-csv[[+]=_
C_S_
V_F_
I_LE
_]
Export information in CSV format, or import information if _C_
S_V_F_
I_L_
E
is specified. When importing, the CSV file must be in exactly the
same format as the exported file. The first row of the C__
S_V_
F_I_
L_E
must be the ExifTool tag names (with optional group names) for
each column of the file, and values must be separated by commas.
A special "SourceFile" column specifies the files associated with
each row of information (and a SourceFile of "*" may be used to
define default tags to be imported for all files which are
combined with any tags specified for the specific SourceFile
processed). The following examples demonstrate basic use of this
option:
# generate CSV file with common tags from all images in a directory
exiftool -common -csv dir > out.csv
When exporting specific tags, the CSV columns are arranged in the
-- ExifTool 12.10 -- 11
same order as the specified tags provided the column headings
exactly match the specified tag names, otherwise the columns are
sorted in alphabetical order.
List-type tags are stored as simple strings in a CSV file, but the
-sep option may be used to split them back into separate items
when importing.
-d _
F_M_
T (-
-dateFormat)
Set the format for date/time tag values. The F __
M_T string may
contain formatting codes beginning with a percent character ("%")
to represent the various components of a date/time value. The
specifics of the F
__M_
T syntax are system dependent -- consult the
"strftime" man page on your system for details. The default
format is equivalent to "%Y:%m:%d %H:%M:%S". This option has no
effect on date-only or time-only tags and ignores timezone
information if present. Only one -d option may be used per
command. Requires POSIX::strptime or Time::Piece for the
inversion conversion when writing.
-D (-
-decimal)
Show tag ID number in decimal when extracting information.
-f (-
-forcePrint)
Force printing of tags even if their values are not found. This
option only applies when specific tags are requested on the
command line (ie. not with wildcards or by "-all"). With this
option, a dash ("-") is printed for the value of any missing tag,
but the dash may be changed via the API MissingTagValue option.
May also be used to add a 'flags' attribute to the -listx output,
or to allow tags to be deleted when writing with the -csv=_
C_S_
V_F_
I_L_
E
feature.
-g[_
N_U_
M][:_
N_U_
M...] (-
-groupHeadings)
Organize output by tag group. _N_
U_M specifies a group family
number, and may be 0 (general location), 1 (specific location), 2
(category), 3 (document number), 4 (instance number), 5 (metadata
path), 6 (EXIF/TIFF format) or 7 (tag ID). -g0 is assumed if a
family number is not specified. May be combined with other
options to add group names to the output. Multiple families may
be specified by separating them with colons. By default the
resulting group name is simplified by removing any leading "Main:"
-- ExifTool 12.10 -- 12
and collapsing adjacent identical group names, but this can be
avoided by placing a colon before the first family number (eg.
-g:3:1). Use the -listg option to list group names for a
specified family. The SavePath and SaveFormat API options are
automatically enabled if the respective family 5 or 6 group names
are requested. See the API GetGroup documentation for more
information.
-G[_
N_U_
M][:_N_
U_M...] (-
-groupNames)
Same as -g but print group name for each tag. -G0 is assumed if
N_
_ UM
_ is not specified. May be combined with a number of other
options to add group names to the output. Note that _N_
U_M may be
added wherever -G is mentioned in the documentation. See the -g
option above for details.
-h (-
-htmlFormat)
Use HTML table formatting for output. Implies the -E option. The
formatting options -D, -H, -g, -G, -l and -s may be used in
combination with -h to influence the HTML format.
-H (-
-hex)
Show tag ID number in hexadecimal when extracting information.
-htmlDump[_
O_F_
FS__
E_T]
Generate a dynamic web page containing a hex dump of the EXIF
information. This can be a very powerful tool for low-level
analysis of EXIF information. The -htmlDump option is also
invoked if the -v and -h options are used together. The verbose
level controls the maximum length of the blocks dumped. An _O_F_
F_S_
E_T
may be given to specify the base for displayed offsets. If not
provided, the EXIF/TIFF base offset is used. Use -htmlDump0 for
absolute offsets. Currently only EXIF/TIFF and JPEG information
is dumped, but the -u option can be used to give a raw hex dump of
other file formats.
-j[[+]=_
J_
S_O_
N_F_
I_L_
E] (-
-json)
Use JSON (JavaScript Object Notation) formatting for console
output, or import JSON file if _
J_S_
O_N_
F_I_
L_E is specified. This option
may be combined with -g to organize the output into objects by
group, or -G to add group names to each tag. List-type tags with
multiple items are output as JSON arrays unless -sep is used. By
default XMP structures are flattened into individual tags in the
JSON output, but the original structure may be preserved with the
-struct option (this also causes all list-type XMP tags to be
output as JSON arrays, otherwise single-item lists would be output
as simple strings). The -a option is implied if the -g or -G
options are used, otherwise it is ignored and tags with identical
JSON names are suppressed. (-
-g4 may be used to ensure that all
tags have unique JSON names.) Adding the -D or -H option changes
tag values to JSON objects with "val" and "id" fields, and adding
-l adds a "desc" field, and a "num" field if the numerical value
is different from the converted "val". The -b option may be added
to output binary data, encoded in base64 if necessary (indicated
by ASCII "base64:" as the first 7 bytes of the value), and -t may
be added to include tag table information (see -t for details).
The JSON output is UTF-8 regardless of any -L or -charset option
setting, but the UTF-8 validation is disabled if a character set
other than UTF-8 is specified.
If _
J_SO
__N_
F_I_
L_E is specified, the file is imported and the tag
definitions from the file are used to set tag values on a per-file
basis. The special "SourceFile" entry in each JSON object
associates the information with a specific target file. An object
with a missing SourceFile or a SourceFile of "*" defines default
tags for all target files which are combined with any tags
specified for the specific SourceFile processed. The imported
JSON file must have the same format as the exported JSON files
with the exception that the -g option is not compatible with the
import file format (use -G instead). Additionally, tag names in
the input JSON file may be suffixed with a "#" to disable print
-- ExifTool 12.10 -- 13
conversion.
Unlike CSV import, empty values are not ignored, and will cause an
empty value to be written if supported by the specific metadata
type. Tags are deleted by using the -f option and setting the tag
value to "-" (or to the MissingTagValue setting if this API option
was used). Importing with -j+=_J_
S_O_
N_F_
I_L_
E causes new values to be
added to existing lists.
-l (-
-long)
Use long 2-line Canon-style output format. Adds a description and
unconverted value (if it is different from the converted value) to
the XML, JSON or PHP output when -X, -j or -php is used. May also
be combined with -listf, -listr or -listwf to add descriptions of
the file types.
-L (-
-latin)
Use Windows Latin1 encoding (cp1252) for output tag values instead
of the default UTF-8. When writing, -L specifies that input text
values are Latin1 instead of UTF-8. Equivalent to "-charset
latin".
-lang [_L_A_
N_G]
Set current language for tag descriptions and converted values.
L_
_ A_
N_G is "de", "fr", "ja", etc. Use -lang with no other arguments
to get a list of available languages. The default language is
"en" if -lang is not specified. Note that tag/group names are
always English, independent of the -lang setting, and translation
of warning/error messages has not yet been implemented. May also
be combined with -listx to output descriptions in one language
only.
3. Run this command to make an XML file of the desired tags (eg.
EXIF):
8. Thank you!!
-listItem I
__N_
D_EX
_
For list-type tags, this causes only the item with the specified
index to be extracted. _I_
N_D_
E_X is 0 for the first item in the list.
Negative indices may also be used to reference items from the end
of the list. Has no effect on single-valued tags. Also applies
to tag values when copying from a tag, and in -if conditions.
-n (-
--printConv)
Disable print conversion for all tags. By default, extracted
values are converted to a more human-readable format, but the -n
option disables this conversion, revealing the machine-readable
values. For example:
-p _
F_M_
TF__
I_L_
E or _
S_T_
R (-
-printFormat)
Print output in the format specified by the given file or string.
The argument is interpreted as a string unless a file of that name
exists, in which case the string is loaded from the contents of
the file. Tag names in the format file or string begin with a "$"
symbol and may contain leading group names and/or a trailing "#"
(to disable print conversion). Case is not significant. Braces
"{}" may be used around the tag name to separate it from
subsequent text. Use $$ to represent a "$" symbol, and $/ for a
newline.
The values of List-type tags with multiple items and Shortcut tags
representing multiple tags are joined according the the -sep
option setting when interpolated in the string.
When -ee (-
-extractEmbedded) is combined with -p, embedded
documents are effectively processed as separate input files.
-php Format output as a PHP Array. The -g, -G, -D, -H, -l, -sep and
-struct options combine with -php, and duplicate tags are handled
in the same way as with the -json option. As well, the -b option
may be added to output binary data, and -t may be added to include
tag table information (see -t for details). Here is a simple
example showing how this could be used in a PHP script:
<?php
eval('$array=' . `exiftool -php -q image.jpg`);
print_r($array);
?>
-s[_
N_U_
M] (-
-short)
Short output format. Prints tag names instead of descriptions.
Add _
N_UM
_ or up to 3 -s options for even shorter formats:
-S (-
-veryShort)
Very short format. The same as -s2 or two -s options. Tag names
are printed instead of descriptions, and no extra spaces are added
to column-align values.
-sep S
__T_
R (-
-separator)
Specify separator string for items in list-type tags. When
reading, the default is to join list items with ", ". When
writing, this option causes values assigned to list-type tags to
be split into individual items at each substring matching _ S_
T_R
(otherwise they are not split by default). Space characters in
S_
_ T_
R match zero or more whitespace characters in the value.
Note that an empty separator ("") is allowed, and will join items
with no separator when reading, or split the value into individual
characters when writing.
-sort, --sort
Sort output by tag description, or by tag name if the -s option is
used. When sorting by description, the sort order will depend on
the -lang option setting. Without the -sort option, tags appear
in the order they were specified on the command line, or if not
specified, the order they were extracted from the file. By
default, tags are organized by groups when combined with the -g or
-G option, but this grouping may be disabled with --sort.
-struct, --struct
Output structured XMP information instead of flattening to
individual tags. This option works well when combined with the
XML (-
-X) and JSON (-
-j) output formats. For other output formats,
XMP structures and lists are serialized into the same format as
when writing structured information (see
<https://exiftool.org/struct.html> for details). When copying,
structured tags are copied by default unless --struct is used to
disable this feature (although flattened tags may still be copied
by specifying them individually unless -struct is used). These
options have no effect when assigning new values since both
flattened and structured tags may always be used when writing.
-t (-
-tab)
Output a tab-delimited list of description/values (useful for
database import). May be combined with -s to print tag names
instead of descriptions, or -S to print tag values only, tab-
delimited on a single line. The -t option may be combined with
-j, -php or -X to add tag table information ("table", tag "id",
and "index" for cases where multiple conditional tags exist with
the same ID).
-T (-
-table)
Output tag values in table form. Equivalent to -t -S -q -f.
-v[_
N_U_
M] (-
-verbose)
Print verbose messages. N__
U_M specifies the level of verbosity in
the range 0-5, with higher numbers being more verbose. If _ N_
U_M is
not given, then each -v option increases the level of verbosity by
1. With any level greater than 0, most other options are ignored
and normal console output is suppressed unless specific tags are
extracted. Using -v0 causes the console output buffer to be
flushed after each line (which may be useful to avoid delays when
piping exiftool output), and prints the name of each processed
file when writing. Also see the -progress option.
-w[+|!] E
__X_
T or _
F_M_
T (-
-textOut)
Write console output to files with names ending in E __
X_T, one for
each source file. The output file name is obtained by replacing
the source file extension (including the '.') with the specified
extension (and a '.' is added to the start of E__
X_T if it doesn't
already contain one). Alternatively, a _F_
M_T string may be used to
give more control over the output file name and directory. In the
format string, %d, %f and %e represent the directory, filename and
extension of the source file, and %c represents a copy number
which is automatically incremented if the file already exists. %d
includes the trailing '/' if necessary, but %e does not include
the leading '.'. For example:
Notes:
Advanced features:
(Note that the root directory counts as one level when an absolute
-- ExifTool 12.10 -- 18
path is used as in the last example above.)
This same _
F_M_
T syntax is used with the -o and -tagsFromFile
options, although %c and %C are only valid for output file names.
-W[+|!] F
__MT
_ (-
-tagOut)
This enhanced version of the -w option allows a separate output
file to be created for each extracted tag. See the -w option
documentation above for details of the basic functionality.
Listed here are the differences between -W and -w:
1) With -W, a new output file is created for each extracted tag.
-Wext E
__X_
T, --Wext _
E_X_
T (-
-tagOutExt)
This option is used to specify the type of output file(s) written
by the -W option. An output file is written only if the suggested
extension matches _ E_X_
T. Multiple -Wext options may be used to
write more than one type of file. Use --Wext to write all but the
specified type(s).
-X (-
-xmlFormat)
Use ExifTool-specific RDF/XML formatting for console output.
Implies the -a option, so duplicate tags are extracted. The
formatting options -b, -D, -H, -l, -s, -sep, -struct and -t may be
used in combination with -X to affect the output, but note that
the tag ID (-
-D, -H and -t), binary data (-
-b) and structured output
(-
-struct) options are not effective for the short output (-
-s).
Another restriction of -s is that only one tag with a given group
and name may appear in the output. Note that the tag ID options
(-
-D, -H and -t) will produce non-standard RDF/XML unless the -l
option is also used.
P_
_ ro
__c_
es__
s_i_
n_g _
c_on
__t_
r_o_
l
-a, --a (-
-duplicates, --duplicates)
Allow (-
-a) or suppress (-
--a) duplicate tag names to be extracted.
By default, duplicate tags are suppressed when reading unless the
-ee or -X options are used or the Duplicates option is enabled in
the configuration file. This option has an affect when writing
only to allow duplicate Warning messages to be shown. Duplicate
tags are always extracted when copying.
-e (-
--composite)
Extract existing tags only -- don't generate composite tags.
-ee (-
-extractEmbedded)
Extract information from embedded documents in EPS files, embedded
EPS information and JPEG and Jpeg2000 images in PDF files,
embedded MPF images in JPEG and MPO files, streaming metadata in
-- ExifTool 12.10 -- 20
AVCHD videos, and the resource fork of Mac OS files. Implies the
-a option. Use -g3 or -G3 to identify the originating document
for extracted information. Embedded documents containing sub-
documents are indicated with dashes in the family 3 group name.
(eg. "Doc2-3" is the 3rd sub-document of the 2nd embedded
document.) Note that this option may increase processing time
substantially, especially for PDF files with many embedded images
or videos with streaming metadata.
When used with -ee, the -p option is evaluated for each embedded
document as if it were a separate input file. This allows, for
example, generation of GPS track logs from timed metadata in
videos. See <https://exiftool.org/geotag.html#Inverse> for
examples.
-ext[+] _
EX__
T, --ext _
E_X_
T (-
-extension)
Process only files with (- -ext) or without (-
--ext) a specified
extension. There may be multiple -ext and --ext options. A plus
sign may be added (ie. -ext+) to add the specified extension to
the normally processed files. EXT may begin with a leading '.',
which is ignored. Case is not significant. "*" may be used to
process files with any extension (or none at all), as in the last
three examples:
Using this option has two main advantages over specifying "*.EXT"
on the command line: 1) It applies to files in subdirectories
when combined with the -r option. 2) The -ext option is case-
insensitive, which is useful when processing files on case-
sensitive filesystems.
-F[_
O_F_
FS__
E_T] (-
-fixBase)
Fix the base for maker notes offsets. A common problem with some
image editors is that offsets in the maker notes are not adjusted
properly when the file is modified. This may cause the wrong
values to be extracted for some maker note entries when reading
the edited file. This option allows an integer _O_
F_F_
S_E_
T to be
specified for adjusting the maker notes base offset. If no _ O_
F_F_
S_E_
T
is given, ExifTool takes its best guess at the correct base. Note
that exiftool will automatically fix the offsets for images which
store original offset information (eg. newer Canon models).
Offsets are fixed permanently if -F is used when writing EXIF to
an image. eg)
-fast[_
N_U_
M]
Increase speed of extracting information. With -fast (or -fast1),
ExifTool will not scan to the end of a JPEG image to check for an
AFCP or PreviewImage trailer, or past the first comment in GIF
images or the audio/video data in WAV/AVI files to search for
additional metadata. These speed benefits are small when reading
images directly from disk, but can be substantial if piping images
through a network connection. For more substantial speed
benefits, -fast2 also causes exiftool to avoid extracting any EXIF
MakerNote information. -fast3 avoids extracting metadata from the
file, and returns only pseudo System tags, but still reads the
file header to obtain an educated guess at FileType. -fast4
doesn't even read the file header, and returns only System tags
and a FileType based on the file extension. Has no effect when
writing.
-- ExifTool 12.10 -- 21
-fileOrder[_
N_UM
_] [-]_T_
A_G
Set file processing order according to the sorted value of the
specified _T_
A_G. For example, to process files in order of date:
-i _
D_I_
R (-
-ignore)
Ignore specified directory name. _D_
I_R may be either an individual
folder name, or a full path. If a full path is specified, it must
match the Directory tag exactly to be ignored. Use multiple -i
options to ignore more than one directory name. A special _ D_
I_R
value of "SYMLINKS" (case sensitive) may be specified to ignore
symbolic links when the -r option is used.
-if[_
N_U_
M] _ E_
X_P_
R
Specify a condition to be evaluated before processing each F __
I_L_
E.
E_
_ X_
P_R is a Perl-like logic expression containing tag names prefixed
by "$" symbols. It is evaluated with the tags from each _ F_
I_L_
E in
turn, and the file is processed only if the expression returns
true. Unlike Perl variable names, tag names are not case
sensitive and may contain a hyphen. As well, tag names may have a
leading group names separated by colons, and/or a trailing "#"
character to disable print conversion. The expression $GROUP:all
evaluates to 1 if any tag exists in the specified "GROUP", or 0
otherwise (see note 2 below). When multiple -if options are used,
all conditions must be satisfied to process the file. Returns an
exit status of 2 if all files fail the condition. Below are a few
examples:
Adding _
N_U_
M to the -if option causes a separate processing pass to
be executed for evaluating _E_
X_P_
R at a -fast level given by N __
U_M (see
the -fast option documentation for details). Without _ N_
U_M, only
one processing pass is done at the level specified by the -fast
option. For example, using -if4 is possible if E __
X_P_
R uses only
pseudo System tags, and may significantly speed processing if
enough files fail the condition.
-- ExifTool 12.10 -- 22
Notes:
4) The condition may only test tags from the file being processed.
To process one file based on tags from another, two steps are
required. For example, to process XMP sidecar files in directory
"DIR" based on tags from the associated NEF:
-m (-
-ignoreMinorErrors)
Ignore minor errors and warnings. This enables writing to files
with minor errors and disables some validation checks which could
result in minor warnings. Generally, minor errors/warnings
indicate a problem which usually won't result in loss of metadata
if ignored. However, there are exceptions, so ExifTool leaves it
up to you to make the final decision. Minor errors and warnings
are indicated by "[minor]" at the start of the message. Warnings
which affect processing when ignored are indicated by "[Minor]"
(with a capital "M"). Note that this causes missing values in
-tagsFromFile, -p and -if strings to be set to an empty string
rather than an undefined value.
-o _
O_U_
TF__
I_L_
E or _
F_M_
T (-
-out)
Set the output file or directory name when writing information.
Without this option, when any "real" tags are written the original
file is renamed to "FILE_original" and output is written to _
F_I_
L_E.
When writing only FileName and/or Directory "pseudo" tags, -o
causes the file to be copied instead of moved, but directories
specified for either of these tags take precedence over that
specified by the -o option.
O_
_ UT
__F_
IL__
E may be "-" to write to stdout. The output file name may
also be specified using a F __
M_T string in which %d, %f and %e
represent the directory, file name and extension of _ F_
I_L_
E. Also,
%c may be used to add a copy number. See the -w option for _ F_
M_T
string examples.
-- ExifTool 12.10 -- 23
The output file is taken to be a directory name if it already
exists as a directory or if the name ends with '/'. Output
directories are created if necessary. Existing files will not be
overwritten. Combining the -overwrite_original option with -o
causes the original source file to be erased after the output file
is successfully written.
-overwrite_original
Overwrite the original F
__I_
L_E (instead of preserving it by adding
"_original" to the file name) when writing information to an
image. Caution: This option should only be used if you already
have separate backup copies of your image files. The overwrite is
implemented by renaming a temporary file to replace the original.
This deletes the original file and replaces it with the edited
version in a single operation. When combined with -o, this option
causes the original file to be deleted if the output file was
successfully written (ie. the file is moved instead of copied).
-overwrite_original_in_place
Similar to -overwrite_original except that an extra step is added
to allow the original file attributes to be preserved. For
example, on a Mac this causes the original file creation date,
type, creator, label color, icon, Finder tags, other extended
attributes and hard links to the file to be preserved (but note
that the Mac OS resource fork is always preserved unless
specifically deleted with "-rsrc:all="). This is implemented by
opening the original file in update mode and replacing its data
with a copy of a temporary file before deleting the temporary.
The extra step results in slower performance, so the
-overwrite_original option should be used instead unless
necessary.
-P (-
-preserve)
Preserve the filesystem modification date/time ("FileModifyDate")
of the original file when writing. Note that some filesystems
store a creation date (ie. "FileCreateDate" on Windows and Mac
systems) which is not affected by this option. This creation date
is preserved on Windows systems where Win32API::File and
Win32::API are available regardless of this setting. For other
systems, the -overwrite_original_in_place option may be used if
necessary to preserve the creation date. The -P option is
superseded by any value written to the FileModifyDate tag.
-password _
P_A_
S_S_
W_D
Specify password to allow processing of password-protected PDF
documents. If a password is required but not given, a warning is
issued and the document is not processed. This option is ignored
if a password is not required.
-progress[:[_
T_I_
T_L_
E]]
Show the progress when processing files. Without a colon, the
-progress option adds a progress count in brackets after the name
-- ExifTool 12.10 -- 24
of each processed file, giving the current file number and the
total number of files to be processed. Implies the -v0 option,
causing the names of processed files to also be printed when
writing. When combined with the -if option, the total count
includes all files before the condition is applied, but files that
fail the condition will not have their names printed.
-q (-
-quiet)
Quiet processing. One -q suppresses normal informational
messages, and a second -q suppresses warnings as well. Error
messages can not be suppressed, although minor errors may be
downgraded to warnings with the -m option, which may then be
suppressed with "-q -q".
-r[.] (--recurse)
Recursively process files in subdirectories. Only meaningful if
F_
_ I_
L_E is a directory name. Subdirectories with names beginning
with "." are not processed unless "." is added to the option name
(ie. -r. or -recurse.). By default, exiftool will also follow
symbolic links to directories if supported by the system, but this
may be disabled with "-i SYMLINKS" (see the -i option for
details). Combine this with -ext options to control the types of
files processed.
-scanForXMP
Scan all files (even unsupported formats) for XMP information
unless found already. When combined with the -fast option, only
unsupported file types are scanned. Warning: It can be time
consuming to scan large files.
-u (-
-unknown)
Extract values of unknown tags. Add another -u to also extract
unknown information from binary data blocks. This option applies
to tags with numerical tag ID's, and causes tag names like
"Exif_0xc5d9" to be generated for unknown information. It has no
effect on information types which have human-readable tag ID's
(such as XMP), since unknown tags are extracted automatically from
these formats.
-U (-
-unknown2)
Extract values of unknown tags as well as unknown information from
some binary data blocks. This is the same as two -u options.
-wm M
__OD
__E (-
-writeMode)
Set mode for writing/creating tags. M__
O_D_
E is a string of one or
more characters from the list below. The default write mode is
"wcg".
For example, use "-wm cg" to only create new tags (and avoid
editing existing ones).
-z (-
-zip)
When reading, causes information to be extracted from .gz and .bz2
compressed images (only one image per archive; requires gzip and
bzip2 to be available). When writing, causes compressed
information to be written if supported by the metadata format (eg.
compressed textual metadata in PNG), disables the recommended
padding in embedded XMP (saving 2424 bytes when writing XMP in a
file), and writes XMP in shorthand format -- the equivalent of
setting the API Compress=1 and Compact="NoPadding,Shorthand".
O_
_ t_
h_e_
r _
o_p_
t_i_
o_n_
s
-@ _
A_R_
GF__
I_LE
_
Read command-line arguments from the specified file. The file
contains one argument per line (NOT one option per line -- some
options require additional arguments, and all arguments must be
placed on separate lines). Blank lines and lines beginning with
"#" are ignored (unless they start with "#[CSTR]", in which case
the rest of the line is treated as a C string, allowing standard C
escape sequences such as "\n" for a newline). White space at the
start of a line is removed. Normal shell processing of arguments
is not performed, which among other things means that arguments
should not be quoted and spaces are treated as any other
character. _AR
__G_
F_I_
L_E may exist relative to either the current
directory or the exiftool directory unless an absolute pathname is
given.
-d
%Y
-copyright<Copyright $createdate, Phil Harvey
Arguments in _A_
R_G_
F_I_
L_E behave exactly the same as if they were
entered at the location of the -@ option on the command line, with
the exception that the -config and -common_args options may not be
used in an _
A_R_
G_F_
I_L_
E.
-k (-
-pause)
Pause with the message "-- press any key --" or "-- press RETURN
--" (depending on your system) before terminating. This option is
used to prevent the command window from closing when run as a
Windows drag and drop application.
S_
_ pe
__c_
ia__
l _
f_e_
a_t_
ur__
e_s
-geotag T
__R_
K_F_
I_L_
E
Geotag images from the specified GPS track log file. Using the
-geotag option is equivalent to writing a value to the "Geotag"
tag. The GPS position is interpolated from the track at a time
specified by the value written to the "Geotime" tag. If "Geotime"
is not specified, the value is copied from "DateTimeOriginal#"
(the "#" is added to copy the unformatted value, avoiding
potential conflicts with the -d option). For example, the
following two commands are equivalent:
-globalTimeShift S
__H_
I_F_
T
Shift all formatted date/time values by the specified amount when
reading. Does not apply to unformatted (--n) output. _S_
H_I_
F_T takes
the same form as the date/time shift when writing (see
Image::ExifTool::Shift.pl for details), with a negative shift
being indicated with a minus sign ("-") at the start of the _ S_
H_I_
F_T
string. For example:
# set the file name from the shifted CreateDate (-1 day) for
# all images in a directory
exiftool "-filename<createdate" -globaltimeshift "-0:0:1 0:0:0" \
-d %Y%m%d-%H%M%S.%%e dir
-use M
__O_
D_U_
L_E
Add features from specified plug-in _
M_O_
D_U_
L_E. Currently, the MWG
module is the only plug-in module distributed with exiftool. This
module adds read/write support for tags as recommended by the
Metadata Working Group. As a convenience, "-use MWG" is assumed
if the "MWG" group is specified for any tag on the command line.
See the MWG Tags documentation for more details. Note that this
option is not reversible, and remains in effect until the
application terminates, even across the "-execute" option.
U_
_ ti
__l_
it__
i_e_
s
-restore_original
-delete_original[!]
These utility options automate the maintenance of the "_original"
files created by exiftool. They have no effect on files without
an "_original" copy. The -restore_original option restores the
specified files from their original copies by renaming the
"_original" files to replace the edited versions. For example,
the following command restores the originals of all JPG images in
directory "DIR":
These options may not be used with other options to read or write
tag values in the same command, but may be combined with options
such -ext, -if, -r, -q and -v.
A_
_ d_
v_an
__c_
ed_ _
o_p_
t_i_
o_ns
_
-api O
__P_
T_[_
[_^_
]_=_
[V__
A_L_
]_]
Set ExifTool API option. _ O_
P_T is an API option name. The option
value is set to 1 if _=_
V_A_
L is omitted. If _ V_
A_L is omitted, the
option value is set to undef if "=" is used, or an empty string
with "^=". See Image::ExifTool Options for a list of available
API options. This overrides API options set via the config file.
-common_args
Specifies that all arguments following this option are common to
all executed commands when -execute is used. This and the -config
option are the only options that may not be used inside a -@
A_
_ R_
G_F_
I_LE
_. Note that by definition this option and its arguments
MUST come after all other options on the command line.
-config _
CF__
G_FI
__L_
E
Load specified configuration file instead of the default
".ExifTool_config". If used, this option must come before all
other arguments on the command line and applies to all -execute'd
commands. The C__
F_G_
F_I_
L_E must exist relative to the current working
directory or the exiftool application directory unless an absolute
path is specified. Loading of the default config file may be
disabled by setting _ C_F_
G_F_
I_L_
E to an empty string (ie. ""). See
<https://exiftool.org/config.html> and config_files/example.config
in the full ExifTool distribution for details about the
configuration file syntax.
-echo[_
N_U_
M] _
TE__
X_T
Echo _T_
E_X_
T to stdout (--echo or -echo1) or stderr (--echo2). Text is
output as the command line is parsed, before the processing of any
input files. N __
U_M may also be 3 or 4 to output text (to stdout or
stderr respectively) after processing is complete. For -echo3 and
-echo4, "${status}" may be used in the _ T_
E_X_
T string to represent
the numerical exit status of the command (see "EXIT STATUS").
-efile[_
N_UM
_][!] _
E_R_
R_F_
IL__
E
Save the names of files giving errors (_ N_
U_M missing or 1), files
that were unchanged (_ N_
U_M is 2), files that fail the -if condition
(_
N_U_
M is 4), or any combination thereof (by summing _ N_
U_M, eg.
-efile3 is the same has having both -efile and -efile2 options
with the same _ E_R_
R_F_
I_L_
E). By default, file names are appended to
any existing _ E_
R_R_
F_I_
L_E, but _E_
R_R_
F_I_
L_E is overwritten if an exclamation
point is added to the option (eg. -efile!). Saves the name of the
file specified by the -srcfile option if applicable.
-execute[_
N_U_
M]
Execute command for all arguments up to this point on the command
line (plus any arguments specified by -common_args). The result
is as if the commands were executed as separate command lines
(with the exception of the -config and -use options which remain
in effect for subsequent commands). Allows multiple commands to
be executed from a single command line. _ N_
U_M is an optional number
that is echoed in the "{ready}" message when using the -stay_open
feature. If a N__
U_M is specified, the -q option no longer
suppresses the output "{readyNUM}" message.
-srcfile _ F_
M_T
Specify a different source file to be processed based on the name
of the original _ F_
I_L_
E. This may be useful in some special
situations for processing related preview images or sidecar files.
See the -w option for a description of the _ F_
M_T syntax. Note that
file name F __
M_T strings for all options are based on the original
F_
_ I_
L_E specified from the command line, not the name of the source
file specified by -srcfile.
-- ExifTool 12.10 -- 29
For example, to copy metadata from NEF files to the corresponding
JPG previews in a directory where other JPG images may exist:
A _
F_M_
T of "@" may be used to represent the original _F_
I_L_
E, which may
be useful when specifying multiple -srcfile options (eg. to fall
back to processing the original _F_
I_L_
E if no sidecar exists).
-stay_open F __
L_A_
G
If _F_L_
A_G is 1 or "True", causes exiftool keep reading from the -@
A_
_ RG
__F_
IL__
E even after reaching the end of file. This feature allows
calling applications to pre-load exiftool, thus avoiding the
overhead of loading exiftool for each command. The procedure is
as follows:
3) Write "-execute\n" to _ A_
R_G_
F_I_
L_E, where "\n" represents a newline
sequence. (Note: You may need to flush your write buffers here if
using buffered output.) ExifTool will then execute the command
with the arguments received up to this point, send a "{ready}"
message to stdout when done (unless the -q or -T option is used),
and continue trying to read arguments for the next command from
A_
_ R_
G_F_
I_LE
_. To aid in command/response synchronization, any number
appended to the "-execute" option is echoed in the "{ready}"
message. For example, "-execute613" results in "{ready613}".
When this number is added, -q no longer suppresses the "{ready}"
message. (Also, see the -echo3 and -echo4 options for additional
ways to pass signals back to your application.)
5) Write "-stay_open\nFalse\n" to _
A_R_
G_F_
I_L_
E when done. This will
cause exiftool to process any remaining command-line arguments
then exit normally.
The input _
AR__
G_F_
I_L_
E may be changed at any time before step 5 above
by writing the following lines to the currently open _ A_
R_G_
F_I_
L_E:
-stay_open
True
-@
NEWARGFILE
This causes _ A_
RG__
F_I_
L_E to be closed, and _ N_
E_W_
A_R_
G_F_
I_L_
E to be kept open.
(Without the -stay_open here, exiftool would have returned to
reading arguments from _ A_
R_G_
F_I_
L_E after reaching the end of
N_
_ E_
W_AR
__G_
F_I_
L_E.)
-userParam _P_A_
RA__
M_[_
[_^_
]_=_
[_V_
A_L_
]_]
Set user parameter. _ P_A_
R_A_
M is an arbitrary user parameter name.
This is an interface to the API UserParam option (see the
Image::ExifTool Options documentation), and provides a method to
access user-defined parameters in arguments to the -if and -p
options as if they were any other tag. Appending a hash tag ("#")
to _
P_A_
RA__
M also causes the parameter to be extracted as a normal tag
(in the UserParam group). Similar to the -api option, the
parameter value is set to 1 if _ =_
V_A_
L is omitted, undef if just _ V_
A_L
is omitted with "=", or an empty string if _ V_
A_L is omitted with
"^=".
A_
_ dv
__a_
nc__
e_d _
fo__
r_m_
a_t_
t_i_
n_g _
f_e_
a_t_
u_r_
e
An "@" may be added after the tag name to make the expression act on
individual list items for list-type tags, simplifying list processing.
Set $_ to undef to remove an item from the list. As an example, the
following command returns all subjects not containing the string "xxx":
Helper functions
"DateFmt"
"ShiftTime"
The -sep option is necessary to split the string back into individual
list items when writing to a list-type tag.
ExifTool 9.79 and later allow the file name encoding to be specified
with "-charset filename=CHARSET", where "CHARSET" is the name of a
valid ExifTool character set, preferably "UTF8" (see the -charset
option for a complete list). Setting this triggers the use of Windows
wide-character i/o routines, thus providing support for most Unicode
file names (see note 4). But note that it is not trivial to pass
properly encoded file names on the Windows command line (see
<https://exiftool.org/faq.html#Q18> for details), so placing them in a
UTF-8 encoded -@ argfile and using "-charset filename=utf8" is
recommended if possible.
When a directory name is provided, the file name encoding need not be
specified (unless the directory name contains special characters), and
ExifTool will automatically use wide-character routines to scan the
directory.
Notes:
1) FileName and Directory tag values still use the same encoding as
other tag values, and are converted to/from the filename character set
when writing/reading if specified.
3) See "WRITING READ-ONLY FILES" below for a note about editing read-
only files with Unicode names.
4) Unicode file names with surrogate pairs (code points over U+FFFF)
-- ExifTool 12.10 -- 32
still cause problems.
READING EXAMPLES
Note: Beware when cutting and pasting these examples into your
terminal! Some characters such as single and double quotes and hyphens
may have been changed into similar-looking yet functionally-different
characters by the text formatter used to display this documentation.
Also note that Windows users must use double quotes instead of single
quotes as below around arguments containing special characters.
WRITING EXAMPLES
Note that quotes are necessary around arguments which contain certain
special characters such as ">", "<" or any white space. These quoting
techniques are shell dependent, but the examples below will work for
most Unix shells. With the Windows cmd shell however, double quotes
should be used (eg. -Comment="This is a new comment").
exiftool -hierarchicalkeywords='{keyword=one,children={keyword=B}}'
Write structured XMP information. See
<https://exiftool.org/struct.html> for more details.
COPYING EXAMPLES
These examples demonstrate the ability to copy tag values between
files.
RENAMING EXAMPLES
By writing the "FileName" and "Directory" tags, files are renamed
and/or moved to new directories. This can be particularly useful and
powerful for organizing files by date when combined with the -d option.
New directories are created as necessary, but existing files will not
be overwritten. The format codes %d, %f and %e may be used in the new
file name to represent the directory, name and extension of the
original file, and %c may be used to add a copy number if the file
already exists (see the -w option for details). Note that if used
within a date format string, an extra '%' must be added to pass these
codes through the date/time parser. (And further note that in a
Windows batch file, all '%' characters must also be escaped, so in this
extreme case '%%%%f' is necessary to pass a simple '%f' through the two
levels of parsing.) See <https://exiftool.org/filename.html> for
additional documentation and examples.
GEOTAGGING EXAMPLES
ExifTool implements geotagging via 3 special tags: Geotag (which for
convenience is also implemented as an exiftool option), Geosync and
Geotime. The examples below highlight some geotagging features. See
<https://exiftool.org/geotag.html> for additional documentation.
PIPING EXAMPLES
cat a.jpg | exiftool -
Extract information from stdin.
EXIT STATUS
-- ExifTool 12.10 -- 39
The exiftool application exits with a status of 0 on success, or 1 if
an error occurred, or 2 if all files failed the -if condition (for any
of the commands if -execute was used).
AUTHOR
Copyright 2003-2020, Phil Harvey
SEE ALSO
I_
_ ma
__g_
e:__
:_E_
x_i_
f_T_
oo__
l(3pm), _ I_
m_a_
g_e_
:_:_
E_x_
i_f_
T_o_
o_l_
:_:_
T_a_
g_N_
a_m_
e_s(3pm),
I_
_ ma
__g_
e:__
:_E_
x_i_
f_T_
oo__
l_:_
:_S_
ho__
r_t_
c_u_
t_s(3pm), Image::ExifTool::Shift.pl