Streaming Images using Image Magick

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
stickler
Posts: 6
Joined: 2011-01-22T13:28:32-07:00
Authentication code: 8675308

Streaming Images using Image Magick

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Streaming Images using Image Magick

Post 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.
stickler
Posts: 6
Joined: 2011-01-22T13:28:32-07:00
Authentication code: 8675308

Re: Streaming Images using Image Magick

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Streaming Images using Image Magick

Post 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.
Post Reply