Page 1 of 1

[FIXED] BUG: Alpha and WEBP

Posted: 2013-02-13T15:52:59-07:00
by tc33
Reference post: viewtopic.php?f=1&t=20836
magick wrote:Download the Webp library and use the cwebp and dwebp tools to convert your PNG to the Webp format. With these tools we're getting a black alpha channel. If you can get them to produce transparent Webp, let us know. We can then use these utilities to determine why alpha fails to work with ImageMagick.
Using IM and libwebp 0.2.1, this appears to remain an issue. I am able to use cwebp from libwebp 0.2.1 to successfully convert a PNG with alpha to webp. Using IM, the image gets corrupted. Seems to work fine with input files that do not have an alpha channel. I also noticed the same behavior with GIFs that have alpha.

Another interesting point is that some image viewers can read the IM-generated file properly (in my case, Irfanview), but Chrome and the webp codec for windows cannot read the IM file properly; apparently they only render the alpha channel (?)

Source file (though any file with alpha seems to cause the problem): ... dbe-c0.png


Edit: Confirmed/fixed in Thank you!

Re: BUG: Alpha and WEBP

Posted: 2013-02-14T05:21:38-07:00
by magick
We can reproduce the problem you posted and have a patch in ImageMagick 6.8.3-0 Beta available by sometime tomorrow. Thanks.

Re: BUG: Alpha and WEBP

Posted: 2013-02-14T10:56:33-07:00
by tc33
Thank you!