less than 1 minute read

exiftool is a powerful tool for working with EXIF data but it is often not intuitive. Therefore, I collect a few useful examples on how to use it here.

mtime from create date (exif)

exiftool '-FileModifyDate<DateTimeOriginal' pic.jpg

set create date (exif) from mtime

exiftool '-DateTimeOriginal<FileModifyDate' pic.jpg

offset the create date (exif)

The command adds (first line) or subtracts (second line) a given offset. The format is years:months:days hours:minutes:seconds.

exiftool -DateTimeOriginal+="1:2:3 4:5:6" pic.jpg
exiftool -DateTimeOriginal-="1:2:3 4:5:6" pic.jpg

set create date (exif) to fixed value

exiftool -time:all="2016:01:20 13:30:45" *.mp4