[magick-users] convert and piping

Jean Magnan de Bornier jean at bornier.net
Wed Aug 22 08:36:31 PDT 2007


Le 22 août à 17:21:23 Scott Bicknell <scotbicknel at cox.net> écrit notamment:

| On Wednesday, August 22, 2007 7:11:10 am Jean Magnan de Bornier 
| 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
>
| program | convert - foo.gif
>
| Convert can take input from standard input (-) and output to a 
| file (foo.gif).

The problem here is that "program" creates a file foo.png, doesn't send
to standard input; I guess in this case pipe cannot help..?
Thanks anyway
-- 
Jean



More information about the Magick-users mailing list