Using IM 6.8.2.8 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.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.
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): http://cssignet.free.fr/png-test-corpus ... dbe-c0.png
Thanks!
Edit: Confirmed/fixed in 6.8.3.0. Thank you!