Page 1 of 1

Streaming Images using Image Magick

Posted: 2011-02-09T23:15:45-07:00
by stickler
Hi,
I am sorry if this is a basic question but I havent been able to find a method that can be used to stream image files using Image Magick.I did find the tool 'stream' http://imagemagick.org/script/stream.ph ... f5slbq6265 but that is command line.I use visual studio and need some way of programatically converting images into streams.

Re: Streaming Images using Image Magick

Posted: 2011-02-10T07:52:06-07:00
by magick
MagickCore supports ReadStream() defined @ http://www.imagemagick.org/api/stream.php. For example usage, see the source distribution @ magick/stream.c and look for the StreamImage() method.

Re: Streaming Images using Image Magick

Posted: 2011-02-10T12:32:36-07:00
by stickler
Thanks for the quick reply.I went back and checked the documentation you pointed.It just talks about what arguments it should take and I am not sure whether to use ReadStream or StreamImage.Can you give a specific example of actually how to do this or point me to one? I'd be grateful.

Re: Streaming Images using Image Magick

Posted: 2011-02-10T12:40:05-07:00
by magick
StreamImage() is a good example of using ReadStream(). See StreamImage() in use @ wand/stream.c. Unfortunately, those are the only two examples of using streams with the MagickCore API. You of course can use the stream utility for streaming from the command-line.