[NTLUG:Discuss] shrink images globally
Steve Baker
sjbaker1 at airmail.net
Sat Dec 4 20:25:32 CST 2004
Rick Cook wrote:
> On Saturday 04 December 2004 17:03, Paul Ingendorf wrote:
>
>>for imageFile in `find ./ -name *.jpg`
>>do
>>mogrify -antialias -scale 512x348 $imageFile
>>done
>>
>
>
> Or =>
>
> find ./ -name *.jpg -exec mogrify -antialias -scale 512x348 {} \;
^
Ha!
You forgot the '\' too!
*.jpg is expanded by the current shell in the current directory.
\*.jpg is expanded by 'find' as it works it's way through the
heirarchy.
---------------------------- 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