mirror of
https://github.com/storytold/figcraft.git
synced 2026-10-30 05:16:56 -06:00
The pixel cap reads only the PNG's header, so a small image followed by a large tail of data passed it and was copied and base64-encoded whole. MAX_CLIPBOARD_PNG_BYTES (256 MB, the same cap as design data read from the clipboard) is checked on the NSData length before the copy on macOS, and again in the paste path so every Services implementation is held to it. A PNG past the cap is treated like an unreadable one: paste falls back to the decoded image.