mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
With Include SVG Code on, Copy offered the SVG markup as plain text with every placed image embedded as base64: a 13 MB photo made 17 MB of text. A paste reads the text first (eframe on every paste key; on Linux and macOS it is the one format written, and holds_ours reads it again), so each paste moved it through the system clipboard on the UI thread, and on GNOME the app stopped responding. The SVG markup now goes out as text only while the images it embeds total at most 1 MiB; above that it is offered as image/svg+xml and PNG. Type keeps its text, and vector art keeps its SVG text at any size (only embedded image bytes count). Windows 11, Ryzen 5 2600X, 13 MB PNG, real Ctrl+C: the longest UI stall fell from 823-1021 ms to 133 ms. Not run on Linux.