ExifTool Command-Line Examples
System: Windows Mac OS X Linux
Task: Any
Special characters Alternate languages Group names Some other Some other
Features:
Some other Some other
Examples: Show Headings Show Descriptions
Feature: Any
0 56 0x00 4
0) Extract information from a file
exiftool [Link]
A basic command to extract all metadata from a file named [Link].
1) Basic write example
exiftool -artist=me [Link]
Writes Artist tag to [Link]. Since no group is specified, EXIF:Artist will be written and all other existing
Artist tags will be updated with the new value ("me").
2) Write multiple files
exiftool -artist=me [Link] [Link] [Link]
Writes Artist tag to three image files.
3) Write to all files in a directory
exiftool -artist=me c:/images
Writes Artist tag to all files in directory c:/images.
4) Write multiple tags
exiftool -artist="Phil Harvey" -copyright="2011 Phil Harvey" [Link]
Writes two tags to [Link].
5) Extracting duplicate tags
exiftool -a -u -g1 [Link]
Print all meta information in an image, including duplicate and unknown tags, sorted by group (for family
1).
6) undefined
exiftool -common dir
Print common meta information for all images in dir.
7) undefined
exiftool -T -createdate -aperture -shutterspeed -iso DIR > [Link]
List meta information in tab-delimited column form for all images in directory DIR to an output text file
named "[Link]".
8) undefined
exiftool -s -ImageSize -ExposureTime [Link]
Print ImageSize and ExposureTime tag names and values.
9) undefined
exiftool -l -canon [Link] [Link]
Print standard Canon information from two image files.
10) undefined
exiftool -r -w .txt -common pictures
Recursively extract common meta information from files in C directory, writing text output into files with the
same names but with a C<.txt> extension.
11) undefined
exiftool -b -ThumbnailImage [Link] > [Link]
Save thumbnail image from C to a file called C.
12) undefined
exiftool -b -JpgFromRaw -w _JFR.JPG -ext CRW -r .
Recursively extract JPG image from all Canon CRW files in the current directory, adding C<_JFR.JPG> for
the name of the output JPG files.
13) undefined
exiftool -d "%r %a, %B %e, %Y" -DateTimeOriginal -S -s *.jpg
Print formatted date/time for all JPG files in the current directory.
14) undefined
exiftool -IFD1:XResolution -IFD1:YResolution [Link]
Extract image resolution from EXIF IFD1 information (thumbnail image IFD).
15) undefined
exiftool "-*resolution*" [Link]
Extract all tags with names containing the word "Resolution" from an image.
16) undefined
exiftool -xmp:author:all -a [Link]
Extract all author-related XMP information from an image.
17) undefined
exiftool -xmp -b [Link] > [Link]
Extract complete XMP data record intact from [Link] and write it to [Link] using the special XMP tag
(see the Extra Tags).
19) undefined
exiftool -p '$filename has date $dateTimeOriginal' -q -f dir
Print one line of output containing the file name and DateTimeOriginal for each image in directory dir.
21) undefined
exiftool -ee -p '$gpslatitude, $gpslongitude, $gpstimestamp' a.m2ts
Extract all GPS positions from an AVCHD video.
22) undefined
exiftool -icc_profile -b -w icc [Link]
Save complete ICC_Profile from an image to an output file with the same name and an extension of
C<.icc>.
23) undefined
exiftool -htmldump -w tmp/%f_%[Link] t/images
Generate HTML pages from a hex dump of EXIF information in all images from the C directory. The output
HTML files are written to the C directory (which is created if it didn't exist), with names of the form
"FILENAME_EXT.html".