Jump to content
THESE FORUMS ARE READ-ONLY: Please Read Me ×

Recommended Posts

Posted (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 by oeborn
added tags
Posted

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?

  • 1 year later...
Posted

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

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.