v7 CopyOpacity

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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

v7 CopyOpacity

Post by snibgo »

In v7.0.2-5 on Windows 8.1, "-compose CopyOpacity -composite" ignores the opacity of the Src image, and performs as if alpha was off.

Code: Select all

%IMG7%magick xc:rgb(22%%,33%%,44%%) x1.png

%IMG7%magick xc:rgba(10%%,20%%,30%%,0.7) x2.png

%IMG7%magick x1.png x2.png -compose CopyOpacity -composite  txt:

0,0: (14418,21627,28835,12187)  #3852547B70A32F9B  srgba(22%,33%,44%,0.185962) <-- Wrong
v6.9.5.3 gives the correct result:

Code: Select all

%IM%convert x1.png x2.png -compose CopyOpacity -composite  txt:

0,0: (14418,21627,28835,45875)  #3852547B70A3B333  srgba(22%,33%,44%,0.700008)
snibgo's IM pages: im.snibgo.com
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: v7 CopyOpacity

Post by magick »

Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ http://www.imagemagick.org/download/beta/ by sometime tomorrow.
Post Reply