reading raw, binary image data from stdin?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
romero619

reading raw, binary image data from stdin?

Post 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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: reading raw, binary image data from stdin?

Post 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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply