-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
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
x/image/webp: unable to decode image #60437
Comments
I've been investigating a bit on this issue, and I want to provide some extra info here: It looks like related to the Alpha Channel. The webpinfo command gives me the following output:
This is saying that there are three chunks. The first one is the VP8X, which works fine. The second one, the ICCP (The Color Profile), is not implemented in the decoder, and the third one is a VP8L chunk, and because we already declared that we need Alpha, we will check if the Alpha channel is defined. Because we ignore the ICCP, there is no alpha channel defined. If you use
The main difference is the ALPH chunk is there, so it works perfectly now. From the code perspective, what happens is that the |
I'm looking into it more. Reading the specification, the VP8L frame already contains the alpha information. You can read that here: https://developers.google.com/speed/webp/docs/riff_container?hl=es-419#alpha (almost at the end of that section). So I guess adding support to read the alpha information from the VP8L chunk, should fix this. |
Change https://go.dev/cl/498535 mentions this issue: |
See details in [issue][1] [1]: golang/go#60437
See details in [issue][1] [1]: golang/go#60437
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
main.go
go run . test.webp
What did you expect to see?
What did you see instead?
Notes
This is not an animated WebP image.
This image is not corrupt:
cwebp
exiftool
Test image
test.webp
The text was updated successfully, but these errors were encountered: