[Webkit-unassigned] [Bug 258267] New: [Cocoa] Custom colorspaces in JPEG XL images don't work on downlevels

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jun 18 17:22:23 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=258267

            Bug ID: 258267
           Summary: [Cocoa] Custom colorspaces in JPEG XL images don't
                    work on downlevels
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Images
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mmaxfield at apple.com
                CC: sabouhallawa at apple.com

We build for downlevels with USE(JPEGXL) but not USE(LCMS). We should port the existing color conversion code to use Core Graphics.

The way to do this is:
1. tryDecodeICCColorProfile() can use CGColorSpaceCreateWithICCData() with a CFData
2. Create a CGColorConversionInfo from the source and destination color space
3. Use vImageConverter_CreateWithCGColorConversionInfo() to create a converter
4. vImageConvert_AnyToAny()

We might need a custom refptr for the vImageConverter. We can probably do this with custom RefPtr traits, like I did in 264884 at main

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230619/46970d3e/attachment.htm>


More information about the webkit-unassigned mailing list