Using ImageMagick ... quite easy.
The way you use it is you cd into the directory with the files
you want resized, and invoke the script (I called it resize_pix
on my installation). It takes an optional parameter for the size.
You can see two size variables, one commented out. By default
(at the moment) it will down-scale all pix to 33% of their original
size, no matter what their initial size is. It will create a
subdir small if it doesn't exist yet, and put the files there.
At the moment it will only consider files with a lower case
jpg extension, but that's easily changed.
Code:
#!/bin/bash
# size="1024x768"
size="33%"
if [ "$1" != "" ]; then
size="$1"
fi
if [ ! -a small ]; then
mkdir ./small
fi
for pic in `ls -1 *.jpg`
do
#echo "$pic"
convert -resize $size "$pic" "small/$pic"
done
Cheers,
Tink