Identify colorspace

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
Cordeo
Posts: 1
Joined: 2011-03-29T05:00:54-07:00
Authentication code: 8675308

Identify colorspace

Post by Cordeo »

Hi all,

I have a tiff file with the Adobe RGB 1998 icc profile embedded. The image uses only grayscale colors and

Code: Select all

identify -format "%r" image.tiff
identify -format "%[colorspace]" image.tiff
report DirectClassGray and Gray respectively.

However,

Code: Select all

identify -verbose image.tiff
reports Colorspace RGB, which is the colorspace of the icc profile. However, -verbose is rather slow and not well-suited for batch processing. Is there another way to find the icc profile colorspace?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Identify colorspace

Post by anthony »

Grey scale images are 'faked' internally by ImageMagick as RGB images. That may be the cause.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply