Page 1 of 1

Identify colorspace

Posted: 2011-03-29T06:21:44-07:00
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?

Re: Identify colorspace

Posted: 2011-03-29T23:53:22-07:00
by anthony
Grey scale images are 'faked' internally by ImageMagick as RGB images. That may be the cause.