Created
May 3, 2020 07:56
-
-
Save heitara/5abff7fab861ef61e6cd083a63b296d2 to your computer and use it in GitHub Desktop.
Image Magick resize buch of images
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 | |
FILES=*.jpg | |
mkdir out | |
for f in $FILES | |
do | |
echo "Processing $f file..." | |
# take action on each file. $f store current file name | |
convert $f -resize 2000x2000\> out/$f | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment