possible bug -fill .. -opaque IM 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.
User avatar
Posts: 26383
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

possible bug -fill .. -opaque IM Q16

Post by fmw42 »

IM Q16 Mac OSX Snow Leopard

I am wondering if the following is a bug or proper behavior?

It seems that one cannot color a binary white image if it is linear rather than sRGB

This works:

convert -size 100x100 xc:white -fill red -opaque white 2tmp1.jpg

These do not:
convert -size 100x100 xc:"gray(255)" -fill red -opaque white 2tmp2.jpg

convert -size 100x100 xc:"gray(255)" -fill red -opaque "gray(255)" 2tmp3.jpg

But this works:

convert -size 100x100 xc:"gray(255)" -set colorspace sRGB -fill red -opaque white 2tmp4.jpg

And so does this:

convert -size 100x100 xc:"gray(255)" -set colorspace RGB -fill red -opaque white 2tmp5.jpg

So it seems to work only if the image and the colors are in the same colorspace. So is this now just a color management issue?

User avatar
Site Admin
Posts: 11254
Joined: 2003-05-31T11:32:55-07:00

Re: possible bug -fill .. -opaque IM Q16

Post by magick »

We can reproduce the problem you posted and have a patch. Look for it in ImageMagick 6.7.8-8 Beta by sometime tomorrow. Thanks.