On Thu, Jan 03, 2002 at 09:34:20PM -0600, Tim Wilson wrote:
> Hi everyone,
> 
> I'm trying to scale an image using Imagemagick's 'convert' utility. An
> example of the sort of conversion I'm trying would be:
> 
> $ convert -quality 75 -geometry 128x128 big_foo.jpg small_foo.jpg
> 
> The Imagemagick man page says this:
> 
> "Specify input_file as - for standard input, output_file as - for
> standard output."
> 
> Can someone provide an example of using standard input and standard
> output in this context?

   cat big_foo.jpg | convert -quality 75 -geometry 128x128 - small_foo.jpg
   convert -quality 75 -geometry 128x128 big_foo.jpg > small_foo.jpg

and of course

   cat big_foo.jpg | convert -quality 75 -geometry 128x128 - - > small_foo.jpg

florin

-- 

"If it's not broken, let's fix it till it is."

41A9 2BDE 8E11 F1C5 87A6  03EE 34B3 E075 3B90 DFE4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 230 bytes
Desc: not available
Url : http://shadowknight.real-time.com/pipermail/tclug-list/attachments/20020104/a483cd6e/attachment.pgp