<div dir="ltr">All,<div><br></div><div>with the release of DCI-P3 screen, WebKit began supporting the display of high gamut images.</div><div>Specifically, if you have an image with a DCI-P3 profile, its pixels render untouched on the new displays.</div><div><br></div><div>However, if you try do do any sort of canvas manipulation, you will see that the colors are being compressed to sRGB and you will lose the depth of the color.</div><div><br></div><div>Was it an oversight to always create the canvas imagebuffer in sRGB? [1]<br></div><div>If this is as-designed, how can we work around this limitation?</div><div><br></div><div>PS</div><div>I asked the same question on WhatWG. [2]</div><div><br></div><div><br></div><div>1: <a href="https://github.com/WebKit/webkit/blob/112c663463807e8676765cb7a006d415c372f447/Source/WebCore/platform/graphics/ImageBuffer.h#L73" target="_blank" style="font-size:12.8px">https://github.com/WebKit/webkit/blob/112c663463807e8676765cb7a006d415c372f447/Source/WebCore/platform/graphics/ImageBuffer.h#L73</a></div><div>2: <a href="https://lists.w3.org/Archives/Public/public-whatwg-archive/2016Apr/0036.html">https://lists.w3.org/Archives/Public/public-whatwg-archive/2016Apr/0036.html</a></div><div><br></div></div>