Page 1 of 1

possible bug -fill .. -opaque IM 6.7.8.7 Q16

Posted: 2012-08-04T11:00:16-07:00
by fmw42
IM 6.7.8.7 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
Image

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

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


But this works:

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


And so does this:

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


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?

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

Posted: 2012-08-04T14:51:37-07:00
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.