export optimized svg / IDs not preserved anymore
Summary:
When exporting a document as an optimized SVG with the option "preserve IDs starting with xxxx" set, no ID are preserved in the saved file.
Steps to reproduce:
- open or create a non empty document
- select an object, set its ID then press DEFINE.
- save as optimized svg with those options
What happened?
The saved svg don't have any ID. They were all stripped.
What should have happened?
The saved svg should have all IDs starting with "obj" preserved.
Version Info:
- Inkscape Version: 1.1-alpha (ec367c6, 2021-02-07)
- Operating System: Windows 10
- Operating System version: 20H2
Notes:
Unchecking "shorten ids" resolved this issue.
The issue is more a UI issue, as "scour" will shorten ALL the remaining IDs (ie: not skipping the one set as preserved).
So when the "shorten ids" is set in the "save as optimized svg" window, the "preserve IDs" box should be grayed out.
Reference: https://github.com/scour-project/scour/wiki/Documentation
Edited by Benjamin