Skip to content

Instantly share code, notes, and snippets.

@henrikh
Created September 14, 2010 11:49
Show Gist options
  • Save henrikh/578909 to your computer and use it in GitHub Desktop.
Save henrikh/578909 to your computer and use it in GitHub Desktop.
I had a folder images I needed to resize, I used this shell script to do so.
#!/bin/bash
#I had a folder images I needed to resize, I used this shell script to do so.
for f in *.JPG
do
echo -n "Resizing $f... "
convert $f -resize 256x256 s-$f
mv s-$f small/
echo "Done"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment