<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class="">On May 2, 2016, at 1:45 PM, Rik Cabanier &lt;<a href="mailto:cabanier@gmail.com" class="">cabanier@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">All,<div class=""><br class=""></div><div class="">with the release of DCI-P3 screen, WebKit began supporting the display of high gamut images.</div><div class="">Specifically, if you have an image with a DCI-P3 profile, its pixels render untouched on the new displays.</div><div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">Was it an oversight to always create the canvas imagebuffer in sRGB? [1]<br class=""></div></div></div></blockquote><div><br class=""></div>No, this was a deliberate choice. We can't change author expectations for what getImageData() return.</div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="">If this is as-designed, how can we work around this limitation?</div></div></div></blockquote><div><br class=""></div>With possible future enhancements to the canvas spec that allow authors to request backing store with a different format and/or color profile.<br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">PS</div><div class="">I asked the same question on WhatWG. [2]</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">1:&nbsp;<a href="https://github.com/WebKit/webkit/blob/112c663463807e8676765cb7a006d415c372f447/Source/WebCore/platform/graphics/ImageBuffer.h#L73" target="_blank" style="font-size:12.8px" class="">https://github.com/WebKit/webkit/blob/112c663463807e8676765cb7a006d415c372f447/Source/WebCore/platform/graphics/ImageBuffer.h#L73</a></div><div class="">2:&nbsp;<a href="https://lists.w3.org/Archives/Public/public-whatwg-archive/2016Apr/0036.html" class="">https://lists.w3.org/Archives/Public/public-whatwg-archive/2016Apr/0036.html</a></div></div></div></blockquote><br class=""></div><div>Simon</div><div><br class=""></div><br class=""></body></html>