Files
vectorcraft/crates/doc
dotCooCoo 01b47b8349 Paste: a bitmap copied in another app is not encoded and decoded again
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.

(cherry picked from commit ea828714fb)
2026-12-01 16:45:08 +01:00
..