Otto Manuel Posted November 18, 2021 Posted November 18, 2021 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! Quote
v_kyr Posted November 18, 2021 Posted November 18, 2021 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: SVG Viewport and View Box Otto Manuel 1 Quote ☛ 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
Otto Manuel Posted November 20, 2021 Author Posted November 20, 2021 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. v_kyr 1 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.