WICG / canvas-color-space

Proposed web platform feature to add color management, wide gamut and high bit-depth support to the <canvas> element.
Other
81 stars 19 forks source link

Add support for ITU Rec 2100 PQ narrow and full quantization #23

Closed palemieux closed 3 years ago

palemieux commented 7 years ago

The objective is to add support for use cases when presentation of the canvas requires a greater dynamic range than that provided by the sRGB color space, and when that presentation requires an absolute luminance value.

The approach to converting sRGB colors to Rec 2100 PQ narrow and full quantization colors is the same used in TTML2

junov commented 7 years ago

Thanks for proposing this modification. As you can see in PR #22 we are trying to reduce the surface of this API by limiting the number of natively supported color spaces to the bare minimum. Instead of creating new colorspaces to support HDR standards, could we consolidate the PQ behavior into existing configurations? @ccameron-chromium WDYT?

palemieux commented 7 years ago

@junov Rec 2100 PQ specifies colors with absolute luminance (in cd/m^2), instead of normalized luminance like sRGB. It is not clear how absolute luminance colors would be mapped to/from extended-srgb.

svgeesus commented 3 years ago

@palemieux is this PR still current, or have more recent events overtaken it?

palemieux commented 3 years ago

@svgeesus Wow... I had totally forgotten about this. I think it is still germane since (a) canvas does not handle HDR (yet) and (b) the topic is under discussion within the Color CG.

palemieux commented 3 years ago

Overtaken by #60