mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-08 15:21:26 +00:00
Images were keyed by their bytes alone, so two <image> elements that link different files with the same bytes shared one image key. Every missing file shows the same placeholder, and files can also be copies of each other. Export reads a linked file's pixels into the image key when the document holds only a preview, so once one of the files was found or changed, the images of the other file exported and printed that file's pixels. A linked image's key now also holds a hash of its link's path, as the .ai reader's linked images do. Images of one file still share a key. The missing-file placeholder comes from vectorcraft_doc::links::missing_placeholder instead of a copy in the SVG importer.