I like to use sizimg in shell scripts to do batch processing. Here's one that I use to convert a series of images to another:
#!/bin/sh
if [ $# -lt 2 ]
then
echo Usage: $0 '<source family root> <destination family root> [options]'
exit
fi
srcRoot="$1"
dstRoot="$2"
shift 2
for file in ${srcRoot}*
do
suffix=`expr "${file}" : "${srcRoot}\(.*\)"`
echo sizimg "${file}" -o "${dstRoot}${suffix}" "$@"
sizimg "${file}" -o "${dstRoot}${suffix}" "$@"
done
exit 0
sizimg
resize images via the command line
Version: 1.30
Great for batch processing
Feedback Type: Usage Tip
Contributed by: Ken_Turkowski_984 Tuesday, January 04 2005 @ 10:11 AM PST
Product Platform: MacOSX
Used Product For: 1-6 months
Recommend Product: YES
Comments
No user comments.