How do I get the results of identifyimagecommand using the C API?

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
che1404
Posts: 12
Joined: 2014-11-04T02:39:27-07:00
Authentication code: 6789

How do I get the results of identifyimagecommand using the C API?

Post by che1404 »

Hi all,
I'm using the IdentifyImageCommand C API method but I can only see the results on the standard output. I have tried to redirect the std::out to an own string stream, but the command keeps printing only to the console.

Any ideas on how could I get the results of the commando into a string (or string stream) variable?

Thanks,
Robert.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How do I get the results of identifyimagecommand using the C API?

Post by snibgo »

freopen() can redirect stdout to a named file. I don't know if you can use that with string streams.
snibgo's IM pages: im.snibgo.com
che1404
Posts: 12
Joined: 2014-11-04T02:39:27-07:00
Authentication code: 6789

Re: How do I get the results of identifyimagecommand using the C API?

Post by che1404 »

Hey, that worked!
Thanks!
Post Reply