Created
June 23, 2019 21:19
-
-
Save KiaraGrouwstra/eb289746104f322a006f9b7cf1ff6808 to your computer and use it in GitHub Desktop.
crop images to printing aspect ratio
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
# for landscape pics | |
for f in *.*; do | |
echo $f | |
convert $f -gravity center -crop 1.41421356237:1 +repage crop_$f | |
done | |
# for portrait pics | |
for f in *.*; do | |
echo $f | |
convert $f -gravity center -crop 1:1.41421356237 +repage crop_$f | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment