[NTLUG:Discuss] shrink images globally

Paul Ingendorf pauldy at wantek.net
Sat Dec 4 17:03:58 CST 2004


for imageFile in `find ./ -name *.jpg`
do
mogrify -antialias -scale 512x348 $imageFile
done


This finds the files from the current directory on named *.jpg and includes
the full file path.
You can modify the mogrify line as you see fit but I use it and it works.

-----Original Message-----
From: discuss-bounces at ntlug.org [mailto:discuss-bounces at ntlug.org]On
Behalf Of Bobby Wrenn
Sent: Saturday, December 04, 2004 1:55 PM
To: Terry Henderson; NTLUG Discussion List
Subject: Re: [NTLUG:Discuss] shrink images globally

I would add one more item to the request.
Instead of processing a directory. I would like to process an entire
directory tree from the current directory on down with one short script.

Bobby




More information about the Discuss mailing list