Verbose incorrect colorspace info on Gray images

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
markzman
Posts: 20
Joined: 2010-02-25T00:43:45-07:00
Authentication code: 8675308

Verbose incorrect colorspace info on Gray images

Post by markzman »

Please check incorrect colorspace info for Grayscale images, see below result for a test gray image:

Image: test_alpha_gray.tif
Format: TIFF (Tagged Image File Format)
Class: DirectClass
Geometry: 1102x864+0+0
Resolution: 188.88x188.88
Print size: 5.83439x4.57433
Units: PixelsPerInch
Type: Grayscale
Base type: Grayscale
Endianess: MSB
Colorspace: RGB
Depth: 8-bit
Channel depth:
gray: 8-bit
Channel statistics:
gray:
min: 0 (0)
max: 255 (1)
mean: 145.7 (0.571372)
standard deviation: 51.0183 (0.200072)
kurtosis: -0.0532354
skewness: 0.096382
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Verbose incorrect colorspace info on Gray images

Post by fmw42 »

I may be wrong on this, but I believe you will only see RGB or CMYK for colorspace. You infer the colorspace as gray from the type=grayscale.
Post Reply