Jump to content
You must now use your email address to sign in [click for more info] ×

SVG attributes passthrough


Recommended Posts

I have an SVG file generated by another application.  It contains several custom attributes, both in the <svg> tag and in each of the <g> tags within.

I would like to load this SVG into Designer, edit it, and then save... without losing the custom information from the original file.

But it seems that not only does Designer remove all the original metadata, it adds in its own namespace and attributes throughout the new SVG.

Is there a way to preserve the information all the way through the process?

Link to comment
Share on other sites

Welcome to the forums.
I am fairly sure that when you Open an SVG in the Affinity applications the SVG will be converted to ‘native’ Affinity layers and there’s nothing you can do about that.
However, I haven’t done any testing with Placed SVGs so that might be something worth trying.
If you need to keep the SVG ‘as is’ then an SVG editor, such as Inkscape, may be a better solution for you in this instance.

Link to comment
Share on other sites

Thanks for your answers.  So if I'm understanding correctly, Affinity converts all documents to its own native format and then reconverts them for export, rather than editing and resaving in the document's original format?

That would explain why line objects get converted to SVG curves and paths as well.

GarryP, I have tried your help suggestion of placing, rather than opening, my files.  Unfortunately I got the same result.

Inkscape exports all the metadata correctly, although it does add its own data too, but isn't nearly as nice to use, and doesn't integrate with publisher and photo as nicely. Illustrator does the job well keeping svg in svg and saving something nearly identical to the original file, but costs too much.

Palatino, yours would be a workable solution, but the custom attributes are spread throughout each document, not just in the header, and it's really not practical to edit every document by hand; that's what computers are for :) 

Just when I thought I'd found the perfect suite of tools, this one tiny detail gets in the way.  But I appreciate your help!

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • 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.