[magick-users] convert and piping

Anthony Thyssen anthony at griffith.edu.au
Wed Aug 22 22:09:13 PDT 2007


Jean Magnan de Bornier on  wrote...
| Le 22 ao=FBt =E0 17:21:23 Scott Bicknell <scotbicknel at cox.net> =E9crit no=
| tamment:
| 
| | On Wednesday, August 22, 2007 7:11:10 am Jean Magnan de Bornier=20
| | 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=20
| | 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..?
| 
If you are using, BASH you can have program write to /dev/stdout
(this file does not exist but handled internally by bash)


  Anthony Thyssen ( System Programmer )    <A.Thyssen at griffith.edu.au>
 -----------------------------------------------------------------------------
      We are all Kosh!          -- Ambassador Kosh,  Bablyon 5
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/


More information about the Magick-users mailing list