tmorris9 Posted July 21, 2019 Posted July 21, 2019 Just purchased Affinity Designer but have used many other programs like it. I am going to be using it to create .svg files for use with Shapeoko CNC machine. Issue is that when I save as an SVG and open in Carbide Create (the cnc creation software) the opjects are much smaller. I had a perfect rectangle reference size and it turns out I have to scale it by exactly 65.837% to make it the proper size. The CNC software uses inches and it looks like Affinity uses inches as well so it's not a conversion error (like one being metric) so not sure why it's doing this. I won't always have an exact size item so I can scale it and I hate to try and remember 65.837. Any ideas? Quote
tmorris9 Posted July 21, 2019 Author Posted July 21, 2019 Well turns out that with different sized objects the amount it needs to be scaled by is different. So no way this is going to work out unless this can be fixed. Quote
Dan C Posted July 21, 2019 Posted July 21, 2019 Hi tmorris9 Sorry to hear you're having trouble, could you please confirm the DPI you have your document set to currently? Quote
tmorris9 Posted July 21, 2019 Author Posted July 21, 2019 It was on 300 I also tried 96 (due to another post on the subject) but it made no difference. dpi "should" not matter since this is a a pure vector image/file. After posting here I came across 2 more threads on the exact same issue and both threads ended with no solution. Quote
Dan C Posted July 23, 2019 Posted July 23, 2019 Thanks for confirming that, could you please try going to File > Export > SVG > More and unchecking the option to set the View Box? Quote
tmorris9 Posted July 23, 2019 Author Posted July 23, 2019 Tried this, it now imports bigger than it should be. Made a 2" box and it imported as 2.66" Quote
Palatino Posted July 24, 2019 Posted July 24, 2019 When I export a graphic as SVG, the size is irrelevant because I use it for the web. So I haven't noticed a bug in Designer yet. Because I'm basically interested in SVG, I played around with the export options for a while and the only way to get back to the original size was an SVG export for the web. Quote Thanks to DeepL.
Palatino Posted July 24, 2019 Posted July 24, 2019 What also works: Document unit on px and export with "SVG (for export)". Quote Thanks to DeepL.
Dan C Posted July 24, 2019 Posted July 24, 2019 12 hours ago, tmorris9 said: Tried this, it now imports bigger than it should be. Made a 2" box and it imported as 2.66" Thanks for that, could you set your document to 72 DPI and export it again with this option left unchecked? Quote
tmorris9 Posted July 24, 2019 Author Posted July 24, 2019 Dan C, that seems to work (with a few simple shapes anyway). Is there a way to make that my default? If I put the program away for a week I am unlikely to remember this. Quote
Dan C Posted July 29, 2019 Posted July 29, 2019 My sincerest apologies for the delayed response. I'm very glad to hear this has resolved the issue for you. Unfortunately there's no way to force this as a default for all documents, however you can create a document preset with this DPI and each time you create a new document you can use the preset. Quote
tmorris9 Posted August 20, 2019 Author Posted August 20, 2019 Well they got rid of the "set the view" box and I am back to square one. All exports are wrong size again. OK I found it again but now 96dpi works instead of 72 (go figure). At least I can save it as a preset now (now I just need to remember to switch to the preset before exporting). Quote
Russ71 Posted April 7, 2021 Posted April 7, 2021 I'm opening svg files from another program in Affinity Designer. They are exported as 7.5"x10" on a 8.5"x11" layout at 300 dpi. They open in affinity at 2.84"x3.75" at 192 dpi for no conceivable reason. if I then export the same file to svg from Affinity Designer it opens in Adobe Illustrator as 11"x14" on a 11"x17"artboard. It's just all over the place. Can I set the default units somewhere? Quote
Dan C Posted April 8, 2021 Posted April 8, 2021 Hi @Russ71, Welcome to the forums and I'm sorry to hear you're having trouble! Can you please provide a copy of this SVG file before it was imported into Affinity, and a copy of the SVG that has been exported from Affinity? What application did the SVG originate in please? What SVG export settings did you use in Affinity? Many thanks in advance Quote
Russ71 Posted April 9, 2021 Posted April 9, 2021 The svg I used came from Arc GIS Pro. I exported it from Affinity Designer using the SVG (for export) preset and the whole document area. Aquita Zarca.svg Aquita Zarca from Affinity.svg Quote
v_kyr Posted April 9, 2021 Posted April 9, 2021 When exporting from Affinity Designer (AD), on the SVG export "More..." options panel, disable the "Set viewBox" checkbox option (see here) ... Quote For SVG file format: Set viewBox—when selected, the exported file includes coordinates and dimensions which define the view box of the image. If this option is off, no view box data is included in the exported file. The export area is used to define the view box. Since then AD doesn't generate for your "Aquita Zarca from Affinity.svg" the width="100%" height="100%" entries together with a viewBox as default, which do the 100% size expand here. See the XML code from inside of a text editor of your actual "Aquita Zarca from Affinity.svg" SVG file here ... Quote ... <svg width="100%" height="100%" viewBox="0 0 721 541" version="1.1" xmlns="http://www.w3.org/2000/svg" ...... ... and what will then be generated instead if you uncheck that SVG "Set viewbox" option ... Quote ... <svg width="721px" height="541px" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink=" ...... Aquita Zarca_AD_no_set_viewbox.svg Of course you could instead also just manually edit your "Aquita Zarca from Affinity.svg" file accordingly inside a text editor to the following ... Quote ... <svg width="721pt" height="541pt" viewBox="0 0 721 541" version="1.1" xmlns="http://www.w3.org/2000/svg"...... ... in order to get the same correct sized result as your initial "Aquita Zarca.svg" file has defined! Aquita Zarca from Affinity-edited.svg Dan C 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
Cody Walsh Posted April 12, 2021 Posted April 12, 2021 I am struggling, simply put. I cannot manage to export any SVG at actual size. I have read on the forums for hours, executed multiple tests, and have not found any workflow resembling realistic, efficient, or precise. We need the ability to export SVGs on a chosen dimensional value, whether it be millimeters, inches, or what have you. I saw that some worked with code to achieve results for single documents. Are there any lines of code I can modify with an exported document to achieve this until Serif wakes up to our mass desire? My work greatly relies upon precision, as I am outputting vectors for CNC programs and other applications, and naively completed a large body of work in Affinity before realizing they do not have this mastered. If Serif decided to fix this, they could open themselves up to a very large and lucrative market looking to manufacture items at home or elsewhere. What can be done?? Quote
tmorris9 Posted April 12, 2021 Author Posted April 12, 2021 Cody, forget trying. What you do is make a box around your design of a known size (does not matter the size as long as you know exactly what it is). Then bring the design into the final use (cutter, laser, CNC, Printer....) and grab the entire design (box around it included) and set the size in that software, it will be the box around it since it's the largest part and when done just delete the box, now your design is exactly at the size you wanted. Quote
Cody Walsh Posted April 12, 2021 Posted April 12, 2021 tmorris9, Thank you for your valuable input. That's an excellent idea; the foundation of a workflow rather than a workaround. I fortunately have other software that can participate, though I wish Serif would create options for others less fortunate, lest they have a third party misinterpret their design goals. Thanks again. Cody Quote
v_kyr Posted April 12, 2021 Posted April 12, 2021 17 minutes ago, tmorris9 said: ...What you do is make a box around your design of a known size (does not matter the size as long as you know exactly what it is). Then bring the design into the final use (cutter, laser, CNC, Printer....) and grab the entire design (box around it included) and set the size in that software... That's what the SVG viewBox definition already does or is meant to be (so to say just a viewable box size your design is on), just alter that one and you usually don't need another box for setups then. 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
Cody Walsh Posted April 12, 2021 Posted April 12, 2021 12 minutes ago, v_kyr said: That's what the SVG viewBox definition already does or is meant to be (so to say just a viewable box size your design is on), just alter that one and you usually don't need another box for setups then. I don't see this accounting for the level of precision tmorris9's method ensures through a separate program. It's a nice idea, but Set Viewbox has been active for all of my problematic exports, and it has returned inflated pixel counts consistently. Even if the viewbox changes size, the result is still in pixels, which is laughable when starting with a 0.0000 mm graduation. How would we change the size of the viewbox to ensure that wouldn't happen? Quote
tmorris9 Posted April 12, 2021 Author Posted April 12, 2021 BTW I got this idea from the company that makes my CNC machine, I told them of the issue and they suggested the box method and I never looked back because it just works. Quote
Cody Walsh Posted April 12, 2021 Posted April 12, 2021 28 minutes ago, tmorris9 said: BTW I got this idea from the company that makes my CNC machine, I told them of the issue and they suggested the box method and I never looked back because it just works. It does seem quite sensible, especially when taking inspiration from other less precise sources. Quote
v_kyr Posted April 13, 2021 Posted April 13, 2021 9 hours ago, tmorris9 said: BTW I got this idea from the company that makes my CNC machine, I told them of the issue and they suggested the box method and I never looked back because it just works. If this procedure always works well and gives finally the wanted results together in conjunction with other CNC software it's Ok. Just go that way if it makes less hassles then! - Usually the by the SVG spec defined format generation should be portable among software, which knows to deal with the SVG format. Affinity only just supports a (minimum) subset of the SVG spec here. 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
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.