Page 1 of 1

Identify ICC Color Profile

Posted: 2010-11-22T14:42:32-07:00
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('|');