mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 21:42:59 -05:00
A paste of a picture copied in a browser or another app read the clipboard's pixels, encoded them as PNG, then decoded that PNG again to check it before keeping it. The paste now encodes the pixels once for the document and keeps the pixels it already has as the decoded image the canvas draws, so the read decodes nothing. decode::decodes counts the images decode_image decodes on a thread, and the new test checks that such a paste decodes none.