Skip to content

Instantly share code, notes, and snippets.

@imaginator
Created December 3, 2022 08:52
Show Gist options
  • Save imaginator/105f3f71b0aa12d811f14ca90af3e4fe to your computer and use it in GitHub Desktop.
Save imaginator/105f3f71b0aa12d811f14ca90af3e4fe to your computer and use it in GitHub Desktop.
# fix bad digitization date
exiftool -r -overwrite_original '-alldates<datetimeoriginal' '-XMP:alldates<datetimeoriginal' /srv/photos/originals/1999
# confirm
exiftool -G0:1 -time:all /srv/photos/originals/1998/1998\ 12\ 2005\ 07\ 02\ London\ with\ Ulrika/DSCN0271.jpg
# remove crap by setting to null
exiftool '-xmp-microsoft:all='
exiftool '-xmp-video:all='
# show field names
exiftool -S /srv/photos/originals/2002/2002\ 03\ 2002\ 04\ Avrils\ Visit/DCP_6664.jpg
# compare timestamps
exiftool -r -if '$DateTimeOriginal !~ $DateTimeDigitized' /srv/photos/originals/2000
# Kodak camera wierdness
exiftool -r -overwrite_original -makernotes:all= /srv/photos/originals/1999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment