We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DEBUG
RELEASE
3.1.5
/
Windows 11 23H2
7.0
WebP encoding produces an entirely transparent image.
It seems that quality settings, lossy or lossless or EncodingMethod Level had no effect (I tested about 20 combinations).
Decoding looks ok, if I export the same image as JPEG it works fine.
using SixLabors.ImageSharp; using SixLabors.ImageSharp.Formats.Jpeg; using SixLabors.ImageSharp.Formats.Webp; var path = "d:\\"; var img = Image.Load($"{path}bugged_image.webp"); var encoder = new WebpEncoder() { Quality = 65, FileFormat = WebpFileFormatType.Lossy, TransparentColorMode = WebpTransparentColorMode.Preserve, Method = WebpEncodingMethod.Level2 }; await img.SaveAsync($"{path}bugged_image_result_direct.webp", encoder);
bugged_image.zip
The text was updated successfully, but these errors were encountered:
I don't think this is the encoder., I think it's the decoder. If you save the image as a PNG the same occurs.
Sorry, something went wrong.
Confirmed. It's the lossy decoder. Something is failing there when applying the alpha values to the pixels. We're getting zero for everything.
Found the issue, will PR soon.
4b3afc1
Successfully merging a pull request may close this issue.
Prerequisites
DEBUG
andRELEASE
modeImageSharp version
3.1.5
Other ImageSharp packages and versions
/
Environment (Operating system, version and so on)
Windows 11 23H2
.NET Framework version
7.0
Description
WebP encoding produces an entirely transparent image.
It seems that quality settings, lossy or lossless or EncodingMethod Level had no effect (I tested about 20 combinations).
Decoding looks ok, if I export the same image as JPEG it works fine.
Steps to Reproduce
Images
bugged_image.zip
The text was updated successfully, but these errors were encountered: