Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

EXIFTool Cheatsheet

📅 2022-Jan-24 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ exif, exiftool ⬩ 📚 Archive

EXIFTool is a commandline tool written by Phil Harvey that can be used to view and modify EXIF information in JPEG files.

Note that for all operations that modify the file, the tool will save a copy of the original file with suffix _original.

$ sudo apt install libimage-exiftool-perl
$ exif foo.jpg

Some of the information is specific to each camera manufacturer and this is stored in the Maker Note.

$ exif --show-mnote foo.jpg
$ exiftool -AllDates *.jpg

======== DSC_6081.jpg
Date/Time Original              : 2022:01:23 17:00:00
Create Date                     : 2022:01:23 17:00:00
Modify Date                     : 2022:01:23 17:00:00

$ exiftool -AllDates some_dir
$ exiftool -AllDates="2022:01:23 17:00:00" *.jpg
$ exiftool -artist="Another Joe" -copyright="(c) 2015 Another Joe" foo.jpg
$ exiftool -all= foo.jpg

Tried with: EXIFTool 11.88 and Ubuntu 20.04