[magick-users] convert and piping

Anthony Thyssen anthony at griffith.edu.au
Wed Aug 22 22:00:25 PDT 2007


Jean Magnan de Bornier on  wrote...
| Hi all,
| Is it possible to create an image from outside IM and then pipe to
| convert?
| Something like this, assuming "program" creates a file named foo.png:
| 
| program ; convert foo.png foo.gif
| 
| To be replaced by :
| program | convert foo.gif
| 
| This solution doesn't work, but is there a way?
| 
YES

   program | convert - foo.gif

The data input can be any reconisable image format not just PNG
if Im can not determine it you can tell IM what type of image it is...

   program | convert png:- foo.gif


  Anthony Thyssen ( System Programmer )    <A.Thyssen at griffith.edu.au>
 -----------------------------------------------------------------------------
   Now we make our own magic!
   Now we create our own legends!
   We build the future.
   Now we stop -- being afraid of Shadows!      -- Babylon 5, "Into the Fire"
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/


More information about the Magick-users mailing list