Created
September 17, 2020 11:04
-
-
Save b3z/6bdf00ac88392a81eb918fa4a30cdec8 to your computer and use it in GitHub Desktop.
Multi image resizing
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
#!/bin/bash | |
for f in p*.[jJ][pP][gG] | |
do | |
echo $f | |
convert $f -resize 1024x683^ -gravity center -extent 1024x683 print_$f | |
done | |
# resizes all jpgs in a dir to 1024x683 px with gravity centered:wq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment