Last active
May 30, 2017 04:05
-
-
Save benkaiser/4c32515791414ddce6a22bd7dec3233e to your computer and use it in GitHub Desktop.
Shrinking unsplash photos to watch size
This file contains 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
# remove all exif tags (not needed) | |
for i in *.jpeg; do exiftool -overwrite_original -all= "./$i"; done | |
# resize images | |
for i in *.jpeg; do convert "./$i" -quality 70 -geometry 400x400^ -gravity center -crop 400x400+0+0 "./$i"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment