possible transparency bug in IM 6.5.2-9

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 transparency bug in IM 6.5.2-9

Post by fmw42 »

IM 6.5.2-9 Q16 Mac OSX Tiger:

I don't know if this is a bug or a change in the way you deal with transparency:

This used to work in previous versions (as I recall) to convert transparent black outside the inner white to opaque red:

convert \( -size 200x200 xc:black \) \
\( -size 100x100 xc:white \) \
-gravity center -compose over -composite \
-transparent black \
-fill red -opaque none \
tmp_alpha3_red.png
Image

But now I have to add -alpha off

convert \( -size 200x200 xc:black \) \
\( -size 100x100 xc:white \) \
-gravity center -compose over -composite \
-transparent black \
-fill red -opaque none
-alpha off \
tmp_alpha4_red.png
Image

Is this a change in the way -fill color -opaque none is supposed to work or is this related to the new -alpha background change.

(see my reply viewtopic.php?f=3&t=13843)
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible transparency bug in IM 6.5.2-9

Post by magick »

Add -channel rgba to your command line.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible transparency bug in IM 6.5.2-9

Post by fmw42 »

OK, this works, but I don't recall that it was necessary before. Am I not remembering correctly or has something changed?

convert \( -size 200x200 xc:black \) \
\( -size 100x100 xc:white \) \
-gravity center -compose over -composite \
-channel rgba -transparent black \
-fill red -opaque none
\
tmp_alpha5_red.png
Image
Post Reply