Skip to content

Instantly share code, notes, and snippets.

@heitara
Created May 3, 2020 07:56
Show Gist options
  • Save heitara/5abff7fab861ef61e6cd083a63b296d2 to your computer and use it in GitHub Desktop.
Save heitara/5abff7fab861ef61e6cd083a63b296d2 to your computer and use it in GitHub Desktop.
Image Magick resize buch of images
#!/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