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.
I hit a situation where the generated image is corrupt. It happens when I resize a WEBP image and apply a sepia filter. If I don't resize, or I don't apply a filter, or I apply a different filter, it doesn't happen.
Note this only seems to happen with the sepia filter. I've not seen the problem with any other transformation yet. And it appears consistent now, any transparent input into the sepia filter causes this issue.
I'm running webp 0.4.0 (downloaded the newest a few days ago). But as I mentioned, it isn't limited to webp. I'm seeing the problem with PNG files as well.
The two thread limit options didn't change the result.
The problem is that the alpha channel is never set in the remainder of the function: only SetPixelRed/Green/Blue are called. Thus I believe the alpha channel just stays in in its uninitialized state.
If I put 0,0 in CloneImage for the size the result is as expected (though slightly wasteful copying). I'm not sure how else the alpha channel should be copied.
For those of you who are forced to use ImageMagick below 6.8.9, and still need to keep and convey the initial Alpha channel of the source PNG image, here is a fully working workaround.
The trick is to extract the initial Alpha channel of the PNG image, then to reapply it with the "Composite" method after having applied the "-sepia" operator :