Jump to content

SVG export in Affinity Designer


Recommended Posts

Hello
I use Affinity Designer, among other things, to create 2D templates for my CNC milling machine.
Unfortunately, it seems that no units of measurement are written to the SVG during export. When importing into my CAM program, the vectors have different dimensions and I have to rescale them.
If I create the SVG with InkScape, the dimensions are correct.

I am working with version 2.5.3 under Windows.

I have attached two files, created with Designer and InkScape. The frame around the text should have a size of 100 x 35 mm.

Welcome_Affinity.svg Welcome_Inkscape.svg

Link to comment
Share on other sites

When exporting the SVG uncheck the Set View Box option.

image.thumb.png.8f4626a70e84c09c8eab4a0bf2f20143.png

iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

This has made a difference, but unfortunately the result is no better.
If the SVG was previously larger (125x44mm instead of 100x35mm), it is now smaller (71x25mm).

Link to comment
Share on other sites

which cam software are you using?

 

iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

The only way I've gotten close to adding a vector file (SVG) to a very close approximation of the specified size is to use a DPI of 101, this is slightly undersized 102 will be slightly oversized. Below are the settings I used to export to SVG.

Screenshot2024-08-22at17_36_18.png.190f83c8cc65f4e65eb1a62478282e94.png

Screenshot2024-08-22at17_37_46.thumb.png.f51b2963ff10401fa69bf1ace3ab2327.png

Note: I just used the ISO plain G-codes -mm Machine option.

iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

@firstdefence
Thanks, that points me in the right direction.

If I set the DPI to 101.6 in Affinity Designer, my example SVG has exactly the correct dimensions of 100 x 35 mm when imported into DeskProto.
Since only whole values can be used for DPI when exporting in Designer, I have set the DPI value in the document settings.

I'm happy with that for now. However, I would of course prefer a correct export regardless of the DPI settings.

Link to comment
Share on other sites

11 minutes ago, MaFu said:

@firstdefence
Thanks, that points me in the right direction.

If I set the DPI to 101.6 in Affinity Designer, my example SVG has exactly the correct dimensions of 100 x 35 mm when imported into DeskProto.
Since only whole values can be used for DPI when exporting in Designer, I have set the DPI value in the document settings.

I'm happy with that for now. However, I would of course prefer a correct export regardless of the DPI settings.

That's great news, but I agree it's odd that you need to edit the DPI to get the correct size, maybe somebody with more knowledge about SVG code can take a look and work out why a DPI adjustment is necessary in Affinity.

iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

I used the DPI value because I found this text in the DeskProto help:

When the size in SVG file is only in pixels (no real life dimensions in the file) DeskProto assumes 4 pixels per mm (101.6 dpi), as that comes close to most screen resolutions.

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.