resizing images for web upload
mitch @ 1:01 pm on March 31, 2005
I wrote a simple bash script to resize images I pull off my digital camera because resizing all of the AutoExpo images was a royal pain… Anyway, it does *very* little error checking (basically only checks to make sure you gave it atleast one argument…) so use it at your own risk!
#!/bin/bash
# bash script to automatically scale images to 25% of their original size
# using ImageMagik.
if [ ! -n "$1" ]
then
echo “Usage: `basename $0` [image path]/ [new resized path]/”
exit
fi
for file in `ls $1`; do
convert -monitor $1$file -resize 25% +profile “*” $2$file
done;





