0% found this document useful (0 votes)
53 views3 pages

ExifTool Command-Line Examples

Uploaded by

Hidden Legendary
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views3 pages

ExifTool Command-Line Examples

Uploaded by

Hidden Legendary
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

ExifTool Command-Line Examples https://exiftool.org/examples.

html

ExifTool Command-Line Examples (under construction)

System: Windows Mac OS X Linux


Task: Any
Special characters Alternate languages Group names Some other
Features:
Some other Some other Some other
Examples: Show Headings Show Descriptions
Feature: Any
[object HTMLInputElement] 7 4 4

0) Extract information from a file

exiftool a.jpg

A basic command to extract all metadata from a file named a.jpg.

1) Basic write example

exiftool -artist=me a.jpg

Writes Artist tag to a.jpg. 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 a.jpg b.jpg c.jpg

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" a.jpg

Writes two tags to a.jpg.

5) Extracting duplicate tags

exiftool -a -u -g1 a.jpg

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

1 of 3 11/18/2024, 8:36 PM
ExifTool Command-Line Examples https://exiftool.org/examples.html

exiftool -T -createdate -aperture -shutterspeed -iso DIR > out.txt

List meta information in tab-delimited column form for all images in directory DIR to an output
text file named "out.txt".

8) undefined

exiftool -s -ImageSize -ExposureTime b.jpg

Print ImageSize and ExposureTime tag names and values.

9) undefined

exiftool -l -canon c.jpg d.jpg

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 image.jpg > thumbnail.jpg

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 image.jpg

Extract image resolution from EXIF IFD1 information (thumbnail image IFD).

15) undefined

exiftool "-*resolution*" image.jpg

Extract all tags with names containing the word "Resolution" from an image.

16) undefined

exiftool -xmp:author:all -a image.jpg

2 of 3 11/18/2024, 8:36 PM
ExifTool Command-Line Examples https://exiftool.org/examples.html

Extract all author-related XMP information from an image.

17) undefined

exiftool -xmp -b a.jpg > out.xmp

Extract complete XMP data record intact from a.jpg and write it to out.xmp 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 image.jpg

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_%e.html 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".

3 of 3 11/18/2024, 8:36 PM

You might also like