RGB Color Profile

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

RGB Color Profile

Post by oddball508 »

I am trying to extract the color profile being used in TIF files. I'm using the command;

Identify "-format", "%r", File.tif

But I get the same result for different files. The result I get is "RGB" but in PhotoshopCS2 the color profile has been set as "sRGB IEC61966-21" for one file and "Adobe RGB(1998) for another.

Any sugestions?
User avatar
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

You mis-understood the %r escape. This returns the colorspace used by IM in storing the image. See '-type' and '-colorspace' options.

It does NOT return the color profile of the image, something IM only passes on or replaces but does not follow.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
Post Reply