[Resolved] possible bug -compose copy_opacity IM 6.7.6.8

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 -compose copy_opacity IM 6.7.6.8

Post by fmw42 »

IM 6.7.6.8 Mac OSX Snow Leopard

Seems like -compose copy_opacity has not been working properly for a while. It even goes back at least as far as ImageMagick-6.7.4-10. It looks like it is putting the alpha channel back, but then making the opaque parts partially transparent.


convert \( logo: -transparent white -write logo_tmp1.png \) \
\( -clone 0 -alpha off -write logo_tmp2.png \) \
\( -clone 0 -alpha extract -write logo_tmp3.png \) \
-alpha off -compose copy_opacity -composite logot1.png

Image
Last edited by fmw42 on 2012-05-05T17:36:11-07:00, edited 1 time in total.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible bug -compose copy_opacity IM 6.7.6.8

Post by magick »

Post a URL to the image as it should look so we can compare and determine where the problem lies. Thanks.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bug -compose copy_opacity IM 6.7.6.8

Post by fmw42 »

magick wrote:Post a URL to the image as it should look so we can compare and determine where the problem lies. Thanks.
The input is just logo:

I have put write statements into each step so you can see that they are correct. logo_tmp1.png is the transparent image that is then separated into alpha off and alpha (extract) and then combined back, so that it should look just like logo_tmp1.png.

But here is that result, logo_tmp1.png

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

Re: possible bug -compose copy_opacity IM 6.7.6.8

Post by magick »

We can reproduce the problem and will have a patch within a day or two. Thanks.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bug -compose copy_opacity IM 6.7.6.8

Post by fmw42 »

This is not correct in IM 6.7.6.9 beta. It shows no transparency now and the verbose info shows no alpha channel.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible bug -compose copy_opacity IM 6.7.6.8

Post by magick »

Was fixed, the fix caused a side-effect so we reverted the patch. We have a new patch that should resolve the problem.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bug -compose copy_opacity IM 6.7.6.8

Post by fmw42 »

This is still not fixed in the latest 6.7.6.9 beta as of 7:25 PM PDT
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bug -compose copy_opacity IM 6.7.6.8

Post by fmw42 »

I downloaded and installed the 6.7.6.9 beta this morning from http://www.imagemagick.org/download/beta/ which is dated 04-May-2012 21:39 10M

This bug is still not fixed. It is still coming out opaque with no transparency.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bug -compose copy_opacity IM 6.7.6.8

Post by fmw42 »

This is now fixed in the latest beta. Thanks.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: [Resolved] possible bug -compose copy_opacity IM 6.7.6.8

Post by magick »

To fix this bug: viewtopic.php?f=3&t=20921 and this one, an extra option is required on the command line:
  • convert \( logo: -transparent white -write logo_tmp1.png \) \
    \( -clone 0 -alpha off -write logo_tmp2.png \) \
    \( -clone 0 -alpha extract -write logo_tmp3.png \) \
    -delete 0 -alpha off -compose copy_opacity -composite logot1.png
    display logot1.png
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: [Resolved] possible bug -compose copy_opacity IM 6.7.6.8

Post by fmw42 »

magick wrote:To fix this bug: viewtopic.php?f=3&t=20921 and this one, an extra option is required on the command line:
  • convert \( logo: -transparent white -write logo_tmp1.png \) \
    \( -clone 0 -alpha off -write logo_tmp2.png \) \
    \( -clone 0 -alpha extract -write logo_tmp3.png \) \
    -delete 0 -alpha off -compose copy_opacity -composite logot1.png
    display logot1.png
You are right. My mistake. DOH! :oops:

Sorry for the false alarm.
Post Reply