mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
An export through the desktop save panel kept any typed extension that names a known format, whatever format it wrote. Export As with PNG chosen and card.svg typed wrote PNG data to card.svg, and Save as PDF, Save for Office Documents, Text Export Options, Export Library and the other writes that go through pick_path did the same. document.exportSelection with a format suggested and added .png whatever the format. Such an extension is now replaced with the written format's, as Save As has done since #3372: card.svg is written as card.png. An extension of the written format stays as typed in any letter case (photo.JPEG for JPEG), Export As SVG (and file.exportAs, file.export.svg) keeps art.svgz and writes it compressed, and document.exportSelection without a format still writes the format the typed extension names. With a format, it suggests and adds that format's extension. Docs: docs/target-app-parity.md.