Last active
April 15, 2020 13:03
-
-
Save clvx/85cdca1cb1e7be210c5450a849da5599 to your computer and use it in GitHub Desktop.
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
#Had to organize my photos based on EXIF metadata. | |
#Visualize tags per group. It provides the tag name as command for further actions: | |
exiftool -a -G [file] | |
#To move/rename photos based on CreateDate EXIF tag use: | |
exiftool -o . '-Directory<CreateDate' -d /path/%Y/%m -r [pics_to_organize] 2> error.log | |
# -o .: copies instead of moving. Get rid of it if you want to move instead. | |
# -d /path/%Y/%m: it will create a year/month directory if it doesn't exist based on the CreateDate file EXIF metadata. | |
# -r [pics_to_organize]: path to fetch all the pics recursively. | |
# 2> error.log: redirect errors for files which don't have an EXIF tag. | |
The following example will copy pics recursively from the directory ./photos to ~/pics/%Y/%m based on the file CreateDate Exif metadata. | |
exiftool -o . '-Directory<CreateDate' -d ~/pics/%Y/%m -r ./photos/ 2> error.log | |
If the EXIF metadata doesn't exist, organize based on other tags or create a manual script. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment