possible -solarize color management bug IM 6.7.9.10 Q16

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

possible -solarize color management bug IM 6.7.9.10 Q16

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible -solarize color management bug IM 6.7.9.10 Q16

Post 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.
Post Reply