-
Notifications
You must be signed in to change notification settings - Fork 9
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
HDR / wide color hints #24
Comments
The lower entropy hints seem useful. The higher entropy hints seem like they'd need a bit more justification. What are the use cases for those that the low entropy hints don't satisfy? |
Image expert @jonsneyers says,
My interpretation of this is that lower-entropy hints are fine. Mapping between specific color spaces can happen at the client; servers only need a general idea of the gamut+contrast that the output device is capable of in order to know how many bits to spend per channel (8, 10, or 12) in order to prevent banding. So I guess this is now a proposal for two new hints whose potential values are a closed set of sf-tokens, identical to the potential values of the corresponding media queries:
&
The use case being that servers can transcode between gamuts/transfer curves and modulate the bit depth of a wide-gamut and/or HDR image for delivery based on the hints, like so:
So if I'm delivering a wide-gamut, HDR source to a |
Knowing things like the max full-screen luminance allows accurate tone-mapping so that content on the Web looks as good as native content on the same platform. A simple SDR-or-HDR media query gives no such information, resulting in sub-standard generic mapping that fails to take advantage of the actual capabilities of the display (dull content, or harsh clipped highlights, or the 'battle of winterfell effect" where you can't see a thing) |
@svgeesus makes sense, though I worry about fingerprinting. (Also I'm curious to see some "generic mapping" failures; I'll try to hunt some down but feel free to share!). Before we expose max full-screen luminance via Client Hints, it should really be available somewhere else first (via JS or CSS). Is https://github.com/w3c/ColorWeb-CG/blob/master/hdr_html_canvas_element.md still the thing to track for that? |
Answering my own question... based on the recent Intent to Prototype, it looks like that is the current proposal. And just making sure I understand the proposal correctly, the specific thing that would be useful to expose as a Client Hint would be |
Yes, that is the actively maintained place to track |
Exactly |
They might be nice! Especially if the files that take advantage of the extra display capabilities are significantly larger (>8 bits-per-channel) than 8-bit SDR/sRGB versions, and can't simply be mapped to less-capable output displays client-side without some cost.
What could such hints contain? I see two options:
All of that is making me lean towards the lower-entropy values, but more research on use cases is required.
The text was updated successfully, but these errors were encountered: