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

Add gamut mapping details #118

Open
palemieux opened this issue Jun 19, 2024 · 3 comments
Open

Add gamut mapping details #118

palemieux opened this issue Jun 19, 2024 · 3 comments

Comments

@palemieux
Copy link
Contributor

From w3ctag/design-reviews#917 (comment)

While we appreciated the discussion on volume mapping, we still had questions about the specifics. We see several cases where gamut/volume/tone mapping come into play, and we’d love some more detail on how these are handled (actually, the same questions apply to wider/smaller gamuts too):

  • HDR image painted on a non-HDR canvas
  • HDR canvas displayed non-HDR screen
  • Author painting an HDR CSS color on a non-HDR canvas
@palemieux
Copy link
Contributor Author

Annex A already contains many details. I have asked for clarification on the comment at w3ctag/design-reviews#917 (comment)

@palemieux palemieux self-assigned this Jun 19, 2024
@ccameron-chromium
Copy link
Collaborator

From w3ctag/design-reviews#917 (comment)

While we appreciated the discussion on volume mapping, we still had questions about the specifics. We see several cases where gamut/volume/tone mapping come into play, and we’d love some more detail on how these are handled (actually, the same questions apply to wider/smaller gamuts too):

  • HDR image painted on a non-HDR canvas

I filed whatwg/html#9112 about this (and the general issue of displaying HDR images).

Suppose we have HDR image that fits within the sRGB gamut (for simplicity).
I think the following should be equivalent:

  • The image painted to a non-HDR (srgb) canvas
  • The image displayed as an <img> element on an sRGB monitor
  • HDR canvas displayed non-HDR screen

Over in the WebGPU review, we ended up replacing CanvasColorMetadata with CanvasToneMapping, which had a mode variable, which provides the answer. (In the context of WebGPU, there wasn't consensus about anything except "standard" and "extended", but there are notes in the explainer about how "hdr10" would be added).

  • Author painting an HDR CSS color on a non-HDR canvas

I'd want to discuss this in the context of defining HDR CSS colors.

@palemieux
Copy link
Contributor Author

AI: Invite TAG folks to an interactive discussion

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

No branches or pull requests

2 participants