[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Command line/scriptable graphics manipulation



On Tue, Nov 11, 2003 at 08:27:18AM -0600, Matt J Wehland wrote:
> I'm looking for some recomendations for a cli/scriptable graphics program.

It's called Bourne shell.

> All I need right now is to be able to take a list of images and just 
> rescale/compress them. 
> ie. take a list of pictures of candles (2048x1536) and make several versions 
> 1024x768, 128x96, etc.
> I need something that is either cli or scriptable, as  I want this to be as 
> automated as possible.

# cat this out to a stream and chmod it +x; then, run it in the same
# directory as the pictures.

mkdir ./1024
mkdir ./128

for image in *.jpg
do
	convert -scale 1024x768 $image ./1024/1024.$image
	convert -scale 128x96 $image ./128/128.$image
done
# EOF

-- 
Nathaniel Reindl

-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.