#917: Adding support for High Dynamic Range (HDR) imagery to HTML Canvas
Discussions
2024-02-05
https://drafts.csswg.org/css-color-hdr/ !
Tess: There's a PredefinedColorSpace
WebIDL enum defined in HTML. CSS Color Level 4 defines <predefined-rgb>
as a different list, and Level 5 adds more. We should really have one WebIDL enum that gets pulled in by reference everywhere, so we ensure we don't have regretable collisions later on. That is, there should be one source of truth for the names of color spaces in web specs.
OpenedNov 13, 2023
こんにちは TAG-さん!
The Color on the Web CG is kindly requesting a TAG review of its proposed modification to the Web Platform to support High Dynamic Range (HDR) imagery in HTML Canvas.
The complete proposal is at https://github.com/w3c/ColorWeb-CG/blob/hdr_canvas_r2/hdr_html_canvas_element.md
Today HTML Canvas supports only 8 bit per color channel and two
PredefinedColorSpace
color spaces (srgb and display-p3
). This is insufficient for High-Dynamic Range (HDR) imagery, which is in widespread use today. Accordingly, the following API modifications are needed to manipulate HDR images in HTML Canvas:PredefinedColorSpace
CanvasRenderingContext2DSettings
ImageDataSettings
ImageDataSettings
andCanvasRenderingContext2DSettings
Screen
interface of the CSS Object Model, to determine the characteristics of the display on which the image is being reproducedPlease note that the proposed
screenColorInfo
property adds a fingerprinting surface. This feature is however intended primarily for advanced color volume mapping applications and is not believed to be generally necessary.Contacts: @palemieux and @svgeesus (Color on the Web CG co-chairs)
Feedback, issues and questions are welcome at mailto:public-colorweb@w3.org and https://github.com/w3c/ColorWeb-CG/issues.