[NTLUG:Discuss] shrink images globally

Steve Baker sjbaker1 at airmail.net
Sat Dec 4 20:23:57 CST 2004


Paul Ingendorf wrote:
> for imageFile in `find ./ -name *.jpg`
                                   ^
                               You need a backslash here!
> do
> mogrify -antialias -scale 512x348 $imageFile
> done

...or more simply:

find ./ -name \*.jpg -exec mogrify -antialias -scale 512x348 {} \;

---------------------------- Steve Baker -------------------------
HomeEmail: <sjbaker1 at airmail.net>    WorkEmail: <sjbaker at link.com>
HomePage : http://www.sjbaker.org
Projects : http://plib.sf.net    http://tuxaqfh.sf.net
            http://tuxkart.sf.net http://prettypoly.sf.net
-----BEGIN GEEK CODE BLOCK-----
GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M-
V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++
-----END GEEK CODE BLOCK-----




More information about the Discuss mailing list