Page 1 of 1

reading raw, binary image data from stdin?

Posted: 2009-01-19T23:23:24-07:00
by romero619
Is it possible to pipe raw binary image data directly into either convert or magickwand/php?
I read something about the "type:-" option, but I wasnt clear on whether it does what I need it to do: read the raw binary image data...

I have an image program that can either write a .png file to disk or "echo" directly to stdout, and Id prefer to send it directly to imagemagick for post-processing, instead of having to write to a temp file, and then read & write again after I finish processing the temp file with imagemagick.

please help

Re: reading raw, binary image data from stdin?

Posted: 2009-01-20T23:27:17-07:00
by anthony
You can using the raw: image input.

You will need to specify the image size, though.

The "Stream" command is about to control the definition of the binary input even more, though I have not used it much, and have almost zero info on it.