[magick-users] convert and piping
Ross Presser
rpresser at gmail.com
Fri Aug 24 06:05:18 PDT 2007
Be aware that TIFF is one format that generally CANNOT be piped,
because it needs to be accessed by the generating program in a random
way.
On 8/23/07, Jean Magnan de Bornier <jean at bornier.net> wrote:
> Le 23 août à 07:09:13 Anthony Thyssen <anthony at griffith.edu.au> écrit
> notamment:
>
> | > 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)
>
> Thanks to all!
> My "program" is not BASH anf doesn't seem to be able to deliver to stdout;
> I will habe to stick to some roundabout way...
> cheers,
> --
> Jean
>
> _______________________________________________
> Magick-users mailing list
> Magick-users at imagemagick.org
> http://studio.imagemagick.org/mailman/listinfo/magick-users
>
More information about the Magick-users
mailing list