Bug in %[colorspace] IM 6.9.9.28 and 7.0.7.16
Posted: 2017-12-26T12:57:40-07:00
.
The following commands should create a gray image, but disable auto grayscale so that JPG or PSD files should report colorspace sRGB. Identify -verbose does report them properly, but %[colorspace] does not, since it reports sGray.
sGray 0.454545
identify -verbose test.jpg
Colorspace: sRGB
Type: Grayscale
Gamma: 0.454545
sGray 0.454545
identify -verbose test.jpg
Colorspace: sRGB
Type: Grayscale
Gamma: 0.454545
The following commands should create a gray image, but disable auto grayscale so that JPG or PSD files should report colorspace sRGB. Identify -verbose does report them properly, but %[colorspace] does not, since it reports sGray.
Code: Select all
convert -size 500x500 xc:gray50 -depth 8 -type truecolor -set colorspace:auto-grayscale off -format "%[colorspace] %[gamma]\n" -write info: test.jpg
identify -verbose test.jpg
Colorspace: sRGB
Type: Grayscale
Gamma: 0.454545
Code: Select all
convert -size 500x500 xc:gray50 -depth 8 -type truecolor -define colorspace:auto-grayscale=off -format "%[colorspace] %[gamma]\n" -write info: test.jpg
identify -verbose test.jpg
Colorspace: sRGB
Type: Grayscale
Gamma: 0.454545