oeborn Posted May 4, 2022 Posted May 4, 2022 (edited) I have a suggestion that i think shouldnt be to much pain for you guys to implement and would be very helpful for me and many others i imagine. When you export to svg there is always added an xml tag and a doctype tag like this '<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">' to the svg file. If you want to include an svg into code these tags causes errors. Of course its easy to manually delete them but if you want to do adjustments to you svg and resave it, you have to remove these lines over and over. It would be fantastic to have an export option to remove these initial tags on export. Thanks for reading Ola Edited May 4, 2022 by oeborn added tags Quote
Guest Posted May 4, 2022 Posted May 4, 2022 The other issue I routinely have with SVG exported from Designer is the Serif namespace xmlns:serif="http://www.serif.com/" and related element attributes such as serif:id="Artboard1" throwing errors with various pipelines. Stripping those out are a bit more involved than deleting the xml tag and doctype. It would be great if these were optional, or removed completely. Does anybody actually have any real use for these Serif namespaced elements? Quote
yellowbuck Posted April 17, 2024 Posted April 17, 2024 I reached this issue when reading exported svg from Affinity Designer in python. https://gist.github.com/53v3n3d4/0d2b54a3fd22820906dd77364371e573 The python script deleteĀ tags and attributes in a svg file: - <?xml version="1.0" encoding="UTF-8" standalone="no"?> - <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> - attribute xmlns:serif="http://www.serif.com/" - serif:id="text" attribute Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.