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: WebP decode contrast issue #40173
Comments
/cc @nigeltao |
I'm almost certain this is due to I'm also not sure if image.YCbCr can even handle full range vs limited range YCbCr content. It certainly can't handle any colorspace but BT.601 (which is fine for WebP, which is always BT.601, but won't hold true for newer formats.) |
Is there any temporary hack that can fix this? I'm using python webp library to write the images. |
Out of curiosity, did anyone find a work around for this? Should we just use another webp library? |
Yeah, I ended up using chai2010 webp library. |
@AliFlux thanks ali, appreciate the reply, I’ll try out the library. By the way, the link you gave is broken, I still found the library though. |
Hey guys, I really wanted to highlight that the problem is much worse when there is an image with a white background, for example, the image below: Original: After: I added this because I think it shows the problem more pronounced than the original image submitted by @AliFlux. And also, a big thank you for all the open source work, I really appreciate it and use most of it in my day to day work. Your work obviously has a massive impact on lives around the world. |
It will be looked at (if you expliciltly add me to the PR) but:
|
Awesome, thanks @nigeltao, I appreciate it, I wanted to make sure I didn't spend a bunch of timing creating a solution that has no chance. |
@savtrip are you still working on this issue, because if you aren't I'd be interested in taking over. |
I’m not working on this, I have been too busy, thanks Trent and good luck!
…On Sunday, 28 August 2022, Trent Moyar ***@***.***> wrote:
@savtrip <https://github.com/savtrip> are you still working on this
issue, because if you aren't I'd be interested in taking over.
—
Reply to this email directly, view it on GitHub
<#40173 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKCFL65ZAOWB7YEFIZ33H4LV3JACBANCNFSM4OXVH44Q>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
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?
I opened up a webp using go, and saved it back to png, The output was different from the source. Other golang webp decoding packages parsed it correctly.
What did you expect to see?
This is the source image, notice the details and the clarity.
What did you see instead?
This is the converted, the details are dimmed, the contrast is lower. Other webp decoding libs maintain the contrast.
The text was updated successfully, but these errors were encountered: