Skip to content

Instantly share code, notes, and snippets.

@alvarow
Last active April 28, 2016 18:24
Show Gist options
  • Save alvarow/fa9bf66b6131699b8adf6732f54e2cd7 to your computer and use it in GitHub Desktop.
Save alvarow/fa9bf66b6131699b8adf6732f54e2cd7 to your computer and use it in GitHub Desktop.
exiftool scratch pad
# Adjust GPS tag on files in a folder
exiftool -GPSLongitudeRef=W -GPSLongitude="73.87538" -GPSLatitudeRef=N -GPSLatitude=40.850581 -ext cr2 jpg jpeg .
# Move files into Year/Month folders in a given folder
exiftool "-Directory<DateTimeOriginal" -d "%Y/%m" DIR
# Rename files in a folder using Year Month Day Hour Minute Second format
exiftool '-FileName<CreateDate' -d %Y%m%d_%H%M%S%%-c.%%e DIR
exiftool -AllDates+=1 *.JPG
# Adjust file modification date
exiftool "-DateTimeOriginal>FileModifyDate" *.JPG
# Copy tags from another file
exiftool -TagsFromFile a.crw a.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment