Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
exiftool cheatsheet

EXIFTOOL CHEATSHEET

shift date

exiftool "-AllDates+=YY:MM:DD hh:mm:ss" -overwrite_original_in_place DIR

update file date to match exif date

exiftool "-DateTimeOriginal>FileModifyDate" -overwrite_original_in_place DIR

Geotagging with gpx file

exiftool -geotag file.gpx "-Geotime<DateTimeOriginal" -P -overwrite_original_in_place .

Adding lens info

exiftool "-LensModel=Minolta MD Rokkor 45mm F2.0" "-MaxApertureValue=2.0" "-FocalLength=45" -overwrite_original_in_place <files>

Adding lens info to files which aperture is undefined (no lens)

exiftool -if '($Aperture eq "undef")' "-LensModel=7artisans 35mm f1.2" "-MaxApertureValue=1.2" "-FocalLength=35" -overwrite_original_in_place <files>

Modify camera model

exiftool "-Model=X-T3" "-CameraModel=X-T3" -overwrite_original_in_place <files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.