Existing users, log in.  New users, create a free account.  Lost password?

Mac OS X  |  Design / Graphics  |  Other Design / Graphics  |  sizimg  |  Great for batch processing

sizimg

sizimg

resize images via the command line

Version:  1.30

   [ Views: 631 ]

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

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   

Rate this Usage Tip

Was this Usage Tip helpful? Yes | No

Comments

0 comments |

No user comments.