[Webkit-unassigned] [Bug 230855] New: Canvas memory limit of 4096 × 4096 pixels

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Sep 27 13:21:35 PDT 2021


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

            Bug ID: 230855
           Summary: Canvas memory limit of 4096 × 4096 pixels
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: macOS 11
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Canvas
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: bramus at bram.us
                CC: dino at apple.com

Spotted on Twitter [1], by Rik Schennink

“Safari 15 has a canvas memory limit of 4096 × 4096 pixels where Safari 14 could deal with resolutions up to 16384 x 16384”

Can verify via the CodePen Demo [2] Rik also shared, in which he creates a 4097x4097 canvas. Upon calling `ctx.getImageData(0, 0, size, size)` the code fails.

“Unable to get image data from canvas. Requested size was 4097 x 4097”

While searching for bugs I did find [3] where the limit was added for iOS, but this is now applied on macOS too apparently. Is this a regression?

[1] https://twitter.com/rikschennink/status/1442443774748082185
[2] https://codepen.io/rikschennink/pen/YzQRdwZ
[3] https://bugs.webkit.org/show_bug.cgi?id=145998

-- 
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/20210927/27876c28/attachment.htm>


More information about the webkit-unassigned mailing list