Possible bug converting grayscale to sRGB PNG
Posted: 2017-12-22T11:27:05-07:00
.
When converting a grayscale image to RGB PNG, the string format %[colorspace] says sRGB but identify -verbose says grayscale. I think identify -verbose is wrong.
sRGB
Image: logo.png
...
Colorspace: Gray
...
png:IHDR.color-type-orig: 2
png:IHDR.color_type: 2 (Truecolor)
This occurs in IM 6.9.9.27 Q16 Mac OSX Sierra and IM 7.0.7.15 Q16 HDRI
When converting a grayscale image to RGB PNG, the string format %[colorspace] says sRGB but identify -verbose says grayscale. I think identify -verbose is wrong.
Code: Select all
convert logo: -colorspace gray logo.jpg
convert logo.jpg PNG24:logo.png
convert logo.png -format "%[colorspace]" info:
Code: Select all
identify -verbose logo.png
...
Colorspace: Gray
...
png:IHDR.color-type-orig: 2
png:IHDR.color_type: 2 (Truecolor)
This occurs in IM 6.9.9.27 Q16 Mac OSX Sierra and IM 7.0.7.15 Q16 HDRI