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
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.
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.
possible -solarize color management bug IM 6.7.9.10 Q16
Re: possible -solarize color management bug IM 6.7.9.10 Q16
We can reproduce the problem you posted and have a patch in ImageMagick 6.8.0-0 Beta available by sometime tomorrow. Thanks.