Skip to content

Instantly share code, notes, and snippets.

@suvozy
Last active November 12, 2023 01:52
Show Gist options
  • Save suvozy/9dc6411b458e509d636ec7f926c7f88c to your computer and use it in GitHub Desktop.
Save suvozy/9dc6411b458e509d636ec7f926c7f88c to your computer and use it in GitHub Desktop.
Exiftool Cheatsheet

DD-MM-YY_HHMM.JPG

exiftool '-datetimeoriginal<${filename;s/(\d{2})-(\d{2})-(\d{2})_(\d{2})(\d{2})/20$3-$2-$1 $4:$5:00/}' .

Set DateTimeOriginal to Any Arbitrary Timestamp

exiftool '-datetimeoriginal=1000-01-01 00:00:00' .

Downloads

exiftool '-datetimeoriginal<filemodifydate' .; exiftool '-filemodifydate<datetimeoriginal' .

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment