Page 1 of 1

possible -solarize color management bug IM 6.7.9.10 Q16

Posted: 2012-10-12T14:21:08-07:00
by fmw42
IM 6.7.9.10 Q16 Mac OSX Snow Leopard.

I think this is a color management bug with -solarize.


convert -size 50x100 gradient:"gray(255)-gray(0)" -depth 8 grad0.png

Image: grad0.png
Geometry: 50x100+0+0
Page geometry: 50x100+0+0
Class: PseudoClass
Colorspace: Gray
Type: Grayscale

Depth: 8-bit
Alpha: False
Channels: gray

Image



convert grad0.png -solarize 50% -level 0,50% grad2.png

Image: grad2.png
Geometry: 50x100+0+0
Page geometry: 50x100+0+0
Class: PseudoClass
Colorspace: RGB
Type: Palette

Depth: 8-bit
Alpha: False
Channels: rgb

Result is converted from grayscale to rgb.

Image


I can work around it by:

convert grad0.png -set colorspace RGB -colorspace gray -solarize 50% -level 0,50% grad2.png

But I would think that this should not have to be done.

Re: possible -solarize color management bug IM 6.7.9.10 Q16

Posted: 2012-10-12T15:16:32-07:00
by magick
We can reproduce the problem you posted and have a patch in ImageMagick 6.8.0-0 Beta available by sometime tomorrow. Thanks.