RESOLVED FIXED Bug 230209
display-p3 canvas toDataURL / toBlob returns sRGB data for JPEGs
https://bugs.webkit.org/show_bug.cgi?id=230209
Summary display-p3 canvas toDataURL / toBlob returns sRGB data for JPEGs
Cameron McCormack (:heycam)
Reported 2021-09-12 22:59:15 PDT
toDataURL() on a display-p3 canvas seems to work for an image/png destination but not image/jpeg.
Attachments
Patch with squashed dependencies for EWS (253.76 KB, patch)
2021-09-12 23:29 PDT, Cameron McCormack (:heycam)
no flags
Patch with squashed dependencies for EWS (254.69 KB, patch)
2021-09-13 00:24 PDT, Cameron McCormack (:heycam)
no flags
Patch (18.58 KB, patch)
2021-09-16 21:14 PDT, Cameron McCormack (:heycam)
no flags
Patch (18.57 KB, patch)
2021-09-16 21:33 PDT, Cameron McCormack (:heycam)
no flags
Cameron McCormack (:heycam)
Comment 1 2021-09-12 22:59:34 PDT
Radar WebKit Bug Importer
Comment 2 2021-09-12 22:59:51 PDT
Cameron McCormack (:heycam)
Comment 3 2021-09-12 23:01:05 PDT
Cameron McCormack (:heycam)
Comment 4 2021-09-12 23:29:44 PDT
Created attachment 438017 [details] Patch with squashed dependencies for EWS
EWS Watchlist
Comment 5 2021-09-12 23:30:45 PDT
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess
Cameron McCormack (:heycam)
Comment 6 2021-09-13 00:24:48 PDT
Created attachment 438018 [details] Patch with squashed dependencies for EWS
Sam Weinig
Comment 7 2021-09-15 09:34:30 PDT
Comment on attachment 438018 [details] Patch with squashed dependencies for EWS View in context: https://bugs.webkit.org/attachment.cgi?id=438018&action=review > Source/WebCore/platform/graphics/cg/ImageBufferCGBackend.cpp:99 > + if (CGColorSpaceGetModel(imageBufferColorSpace.platformColorSpace()) != kCGColorSpaceModelRGB) > + return sRGBColorSpaceRef(); This is another spot where CGBitmapContextCreateForFlatteningImage might make sense.
Cameron McCormack (:heycam)
Comment 8 2021-09-16 21:14:07 PDT
Cameron McCormack (:heycam)
Comment 9 2021-09-16 21:14:41 PDT
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/30838
EWS
Comment 10 2021-09-16 21:24:20 PDT
ChangeLog entry in LayoutTests/imported/w3c/ChangeLog contains OOPS!.
Cameron McCormack (:heycam)
Comment 11 2021-09-16 21:33:23 PDT
EWS
Comment 12 2021-09-16 22:32:46 PDT
Committed r282634 (241791@main): <https://commits.webkit.org/241791@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 438443 [details].
Note You need to log in before you can comment on or make changes to this bug.