Identify ICC Color Profile

ImageMagickObject is a Windows COM+ interface to ImageMagick. COM+, Visual Basic, and Delphi users should post to this discussion group.
Post Reply
rax

Identify ICC Color Profile

Post by rax »

I'm using Interop.ImageMagickObject.dll to identify images with C#.NET.
I need to programmatically get the name of the color ICC profile used (e.g Adobe RGB (1998))!

The -verbose command gives the ICC profile, but for some reason it just returns an empty string to .NET and writes directly to the console.

Is there any other way to get the name of the ICC profile programmatically?

Here is an example of how i extract data from images.

Code: Select all

object[] arguments = new object[] { "-units", "PixelsPerInch", "-format", "%[EXIF:*]|%w|%h|%x|%y|%q|%m|%k|%b|%r|%#|%C|%l", absolutePath + "[0]" };
            object result = magick.Identify(ref arguments);
            string[] info = result.ToString().Split('|');
Post Reply