mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-09 20:03:56 +00:00
SVG export wrote an SVG filter as a live <filter> when its SVG 1.1 form was at most 64 KB, without counting the region and id it writes into it. A filter close to the limit came back over it, SVG import dropped it, and the reopened object had no filter. Export now leaves room for the id and the measured region, checks the SVG 1.1 form the way import does, and counts each character past U+00FF as the character reference Latin-1 output writes. A filter that does not fit is exported as the other pixel effects are. The SVG 1.1 form and its check are kept for the filters seen last, as checked filters already are, so export does not check one filter again for each object.