[Resolved] possible bug alpha IM 6.7.6.7 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

[Resolved] possible bug alpha IM 6.7.6.7 Q16

Post by fmw42 »

IM 6.7.6.7 Q16 Mac OSX Snow Leopard

I could be wrong here. But I was under the impression that IM has for some time now, when using -channel a -separate, gives the transparency channel. But it seems to be giving the opacity channel. Was this not switched a while ago? Or am I mis-remembering?

Image

convert alpha3.png -channel a -separate alpha3_alpha.png

Image


convert alpha3.png -background skyblue -flatten alpha3_blue.png

Image


convert alpha3_blue.png -channel a -separate alpha_blue_alpha.png

Image

The above is extracting the opacity and not the transparency. Did you not switch this so that we get the transparency? Or is that only to come in IM 7?
Last edited by fmw42 on 2012-05-03T20:50:23-07:00, edited 2 times in total.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible but alpha IM 6.7.6.7 Q16

Post by magick »

We can reproduce the problem you reported and have a patch. Look for it in the ImageMagick 6.7.6-8 release.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible but alpha IM 6.7.6.7 Q16

Post by fmw42 »

magick wrote:We can reproduce the problem you reported and have a patch. Look for it in the ImageMagick 6.7.6-8 release.

Don't change anything without further discussion with Anthony. I actually think I am wrong about this.

I think it has been opacity all the time. I think I am confusing using -channel a -separate with -alpha extract. The former gets the opacity and the latter gets the transparency.

But please confirm this.

I think I got confused when trying to answer viewtopic.php?f=1&t=20875
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bug alpha IM 6.7.6.7 Q16

Post by fmw42 »

OK. This is now correctly showing the transparency rather than the opacity.
Post Reply