PNG looses transparency

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.
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: PNG looses transparency

Post by glennrp »

Yes, confirmed that the bug is still there with the autolevel gradient problem in the Q16 build (but not in Q8). The cropped-rose looks OK now in both Q8 and Q16.
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: PNG looses transparency

Post by glennrp »

The -taint sets a flag, yes. One thing that flag does is to cause the PNG encoder to do a SyncImage() before encoding the PNG, which is not appropriate for 16-bit images. I added another test in the PNG encoder to skip the SyncImage when ( image->depth > 8 ) in the SVN head. That seems to fix the problem. Maybe SyncImage() itself should be modified to return without action when the depth is 16 or more.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: PNG looses transparency

Post by anthony »

The original problem has now been fixed in IM v6.6.6-3.

lets hope that all the transparency bugs have now been squashed.

Any new problems should be in a new topic, so I will now lock this topic.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Locked