Last active
November 22, 2018 20:24
-
-
Save remcotolsma/01ec042d5265776f1b3ae2c169d5bcb5 to your computer and use it in GitHub Desktop.
ExifTool group images in date folders
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://sno.phy.queensu.ca/~phil/exiftool/faq.html#Q5 | |
exiftool -d "%Y-%m-%d" -DateTimeOriginal -S -s *.JPG | |
# -TAG or --TAG Extract or exclude specified tag | |
# -d FMT (-dateFormat) Set format for date/time values | |
# -s[NUM] (-short) Short output format | |
# -S (-veryShort) Very short output format | |
# https://ninedegreesbelow.com/photography/exiftool-commands.html | |
# https://www.sno.phy.queensu.ca/~phil/exiftool/exiftool_pod.html | |
exiftool '-Directory<CreateDate' -d ./new/%Y/%Y-%m-%d -r ./old | |
exiftool '-Directory<FileModifyDate' -d ./new/%Y/%Y-%m-%d -r ./old |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment