potential bug in colorspace in verbose info IM 6.4.7-0
Posted: 2008-12-05T13:30:08-07:00
IM 6.4.7-0 Q16 Mac OSX Tiger
I am not sure of this, but seems that long ago when getting the verbose information on an image, the colorspace item reported, RGB, Gray and CMYK for appropriate images. Am I mistaken. Today, I tested the following:
convert rose: -colorspace gray rose_gray.png
identify -verbose rose_gray.png
reports:
...
Type: Grayscale
Base type: Grayscale
Colorspace: RGB
Channel depth:
gray: 8-bit
Channel statistics:
gray:
min: 37 (0.145098)
max: 255 (1)
mean: 105.14 (0.412313)
standard deviation: 47.3907 (0.185846)
...
Likewise:
convert rose: -colorspace cmyk rose_cmyk.png
identify -verbose rose_cmyk.png
reports:
...
Type: TrueColor
Colorspace: RGB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
red:
min: 35 (0.137255)
max: 255 (1)
mean: 145.712 (0.57142)
standard deviation: 69.2953 (0.271746)
green:
min: 22 (0.0862745)
max: 255 (1)
mean: 89.2602 (0.35004)
standard deviation: 52.4698 (0.205764)
blue:
min: 24 (0.0941176)
max: 255 (1)
mean: 80.4683 (0.315562)
standard deviation: 55.1114 (0.216123)
Also
convert rose_cmyk.png -format "%[colorspace]" info:
RGB
Am I wrong, but should not the colorspace be properly reported for Gray and CMYK. Also should not the statistics for CMYK show C,M,Y,K values and not RGB values.
Am I doing something wrong?
I am not sure of this, but seems that long ago when getting the verbose information on an image, the colorspace item reported, RGB, Gray and CMYK for appropriate images. Am I mistaken. Today, I tested the following:
convert rose: -colorspace gray rose_gray.png
identify -verbose rose_gray.png
reports:
...
Type: Grayscale
Base type: Grayscale
Colorspace: RGB
Channel depth:
gray: 8-bit
Channel statistics:
gray:
min: 37 (0.145098)
max: 255 (1)
mean: 105.14 (0.412313)
standard deviation: 47.3907 (0.185846)
...
Likewise:
convert rose: -colorspace cmyk rose_cmyk.png
identify -verbose rose_cmyk.png
reports:
...
Type: TrueColor
Colorspace: RGB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
red:
min: 35 (0.137255)
max: 255 (1)
mean: 145.712 (0.57142)
standard deviation: 69.2953 (0.271746)
green:
min: 22 (0.0862745)
max: 255 (1)
mean: 89.2602 (0.35004)
standard deviation: 52.4698 (0.205764)
blue:
min: 24 (0.0941176)
max: 255 (1)
mean: 80.4683 (0.315562)
standard deviation: 55.1114 (0.216123)
Also
convert rose_cmyk.png -format "%[colorspace]" info:
RGB
Am I wrong, but should not the colorspace be properly reported for Gray and CMYK. Also should not the statistics for CMYK show C,M,Y,K values and not RGB values.
Am I doing something wrong?