Jump to content

Recommended Posts

Posted

Hi,

 I have been working with some SVG files exported from Affinity Designer, and the next app I load them in does not recognize a document size. In this case I am drawing the shapes to scale with a document size in inches.

 Is this is a basic characteristic of SVG format or is there some way I can learn to make sure that my SVG exports maintain the intended dimensions?

 Thank you!

Posted
4 hours ago, Otto Manuel said:

I have been working with some SVG files exported from Affinity Designer, and the next app I load them in does not recognize a document size. I this case I am drawing the shapes to scale with a document size in inches.

Hard to tell without seeing (into) the code of one of those generated Affinity SVGs then. - Maybe it's due to Affinity's default viewBox related code generation setting ...

Quote
<svg height="100%" width="100%" viewBox="0 0 1000 1000" ...

...vs...
<svg height="1000" width="1000" ...

...or...

<svg viewBox="0 0 1000 1000"

See also for example:

☛ 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

Posted

Thank you @v_kyr

 I opened my svg in a text editor and found the tag

<svg width="100%" height="100%"

and changed it to the dimensions of the project. For example;

<svg width="7.5in" height="14in"

and now I can import the svg in other apps and have it load as I had hoped.

Thank you for pointing me in the right direction.

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.