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

Problem with opening .SVG file


Recommended Posts

  • Staff

The same is happening for me, however there isn't anything that can be adjusted to change the way is which the SVG file is imported. The numbers would need to be deleted and created again.

Link to comment
Share on other sites

There are no text elements in that SVG, the text is drawn as paths and the path elements for the text have transforms applied to them and the Affinity suite doesn’t ‘do’ transform perfectly.
I suspect – but can’t prove – that this is where the problem is coming from.
See this thread for more information (and links to yet more information): https://forum.affinity.serif.com/index.php?/topic/154583-bug-svg-transform-property-isnt-handle-right/

Is it possible for you to export, from the application you use to create the SVG, without the transforms? (I don’t know what the functionality will be called, maybe “Flatten Transforms” or something like that.)

Link to comment
Share on other sites

  • 1 month later...
3 hours ago, GioPasqui said:

I am facing the same problem when exporting .svg from python scripts. 

In case of the OP and his initial matplotlib based imports ...

#!/usr/bin/env python3

import proplot as pplt
import matplotlib.pyplot as plt
...

... the usage of pycairo instead for the SVG output generation ...

#!/usr/bin/env python3

import proplot as pplt
import cairo
import matplotlib
import matplotlib.pyplot as plt
matplotlib.use('Cairo')
...

... yields to better by ADe parsable SVG code.

  • Other than that making use of the SVGwrite library (docs are here) is always also a good way to generate SVG graphics output which ADe can usually parse in without problems.

 

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

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.