Skip to content
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

Works great, but some details get lost on conversion #1

Open
Berny23 opened this issue Nov 5, 2023 · 4 comments
Open

Works great, but some details get lost on conversion #1

Berny23 opened this issue Nov 5, 2023 · 4 comments

Comments

@Berny23
Copy link

Berny23 commented Nov 5, 2023

Overall it looks great, but some highlights get lost on conversion. Here is an example where the red lines in the background lose highlights and detail.

Windows-Fotoanzeige 05 11 2023 20_48_25

output avif (3440×1440) - Google Chrome 05 11 2023 20_48_12

@ledoge
Copy link
Owner

ledoge commented Nov 5, 2023

Hm, that does look like a bug. Can you upload the .jxr file?

@Berny23
Copy link
Author

Berny23 commented Nov 5, 2023

I packed it because GitHub doesn't allow the JXR file type:
Screenshot 2023-11-03 22-22-21.zip

@ledoge
Copy link
Owner

ledoge commented Nov 5, 2023

I played around a bit with that file, but I'm still not entirely sure where the differences are coming from. At least some of it is down to Chrome's tone mapping, because when I encode it in 8 bit 4:4:4, the highlights look a bit dimmer in Chrome than in WCG Image Viewer (with the SDR brightness slider at 31 = 204 nits, so Chrome should be a tiny bit brighter than reference). When I encode it as 10 or 12 bit 4:2:0, WCG Image Viewer silently fails to open it and just shows black. The Windows Photos app does at least open it, but the colors are very wrong, even at 8 bit 4:4:4... Not really sure what to make of all this, but without having a known-good application that can open jxr and avif files and actually display them accurately, it's hard to say if these differences are actually caused by the files or by the applications.

I should probably add some command line options for different output formats to make troubleshooting like this easier.

@clshortfuse
Copy link

HDR + WCG app reports the JXR to be 1250 nits. Chrome dims it for me.

My 649 nit JXRs get brightened by Chrome. I would take a guess that Chrome targets 1000 nits. I don't think it's an AVIF conversion problem.

I would look into: https://bugs.chromium.org/p/chromium/issues/detail?id=1339333

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants