[TriLUG] Re: Digital imaging on Linux

James Manning jmm at sublogic.com
Tue Oct 15 09:55:24 EDT 2002


> [Michael Winslow Czeiszperger]
> #!/bin/bash
> for file in $*
> do
> echo Converting $file
> djpeg -scale 1/4 -pnm $file | cjpeg > small_$file
> done

Not that it much matters, of course, but in ImageMagick world:

for file in $*; do
   convert -verbose -geom 25%x25% $file small_$file
done

Just wanted to add this in case someone wanted to do a similar
operation on diff file types *shrug*

James
-- 
James Manning <http://www.sublogic.com/james/>
GPG Key fingerprint = B913 2FBD 14A9 CE18 B2B7  9C8E A0BF B026 EEBB F6E4



More information about the TriLUG mailing list