Last active
August 29, 2015 14:06
-
-
Save jamiecurran/be747b4ed16665b49a5c to your computer and use it in GitHub Desktop.
Search range of directories. Resize 5 * rated photos.
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
for folder in {090..104}; do cd $folder; files=($(exiftool -q -if '$Rating eq 5' *.JPG -p '$FileName')); for f in ${files[@]}; do convert ${f} -resize 1900 ~/pictures/resized/$folder"-"$(exiftool -q -p '$DateTimeOriginal' $f | tr ' ' '_' | sed 's/+00:00//' | sed 's/\:/./g').JPG; done; cd ..; done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment