Skip to content

Instantly share code, notes, and snippets.

@xinyangli
Created March 22, 2023 06:11
Show Gist options
  • Save xinyangli/2baaa6970ab08ec5ca7bed9f211476e3 to your computer and use it in GitHub Desktop.
Save xinyangli/2baaa6970ab08ec5ca7bed9f211476e3 to your computer and use it in GitHub Desktop.
Exiftool Cheetsheet
#/bin/sh
# View EXIF
exiftool -all:all <filename>
exiftool -xmp:all <filename> # view information in embedded xmp
# Move file according to capture date
exiftool -if '$datetimeoriginal ge "2023:03:17 00:00:00"' -'FileName<filename' -o <outdir>
# Export ratings to sidecar xmp
exiftool -ext jpg -X -xmp:Rating -o %d%f.xmp [-r] <srcdir>
# Apply ratings from sidecar to image file
exiftool -ext jpg -ext raf -tagsFromFile %d%f.xmp -xmp:Rating [-r] <srcdir>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment