# # Oneliner Script for resizing images in a folder to 800x600 # # Enrique Llanos V. # ellanos_NO@SPAM_greencoreperu.com # Lima, Peru - 2009 # # Script under Creative Commons License # # Usage: Change the extension to .sh and chmod it to 755 # Execute it: $ ./resize.sh from within a folder containing your images to be resized # #!/bin/bash -- LS=`which ls`; GREP=`which grep`; CONVERT=`which convert`; ECHO=`which echo`; CUT=`which cut`; # $LS | $GREP -i jpg | while read i; do $CONVERT $i -resize 800x600 `$ECHO $i | $CUT -f1 -d.`_800.jpg; done #