
Create half-size and thumbnail images with ImageMagick
Here is a little script using ImageMagick to create half-sized and thumbnail images for web use.
Just change to the directory where the files are and run the script. It will create 2 files based on the original, one that is 500x400 and another that is 200x100.
#/bin/bash
for i in `ls *.jpg *.JPG`
do
file=`echo $i | cut -d . -f 1`
ext=`echo $i | cut -d . -f 2`
convert $i -geometry 500x400 $file.half.$ext
convert $i -geometry 200x100 $file.thumb.$ext
done
