Bug in %[colorspace] IM 6.9.9.28 and 7.0.7.16

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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Bug in %[colorspace] IM 6.9.9.28 and 7.0.7.16

Post by fmw42 »

.
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
sGray 0.454545

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
sGray 0.454545

identify -verbose test.jpg
Colorspace: sRGB
Type: Grayscale
Gamma: 0.454545
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Bug in %[colorspace] IM 6.9.9.28 and 7.0.7.16

Post by magick »

Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ https://www.imagemagick.org/download/beta/ by sometime tomorrow.
Post Reply