Jump to content
VVZ3n

[Fixed] Affinity Designer - SVG doesn't maintain scale when opened

Recommended Posts

[ macOS El Capitan 10.11.6, Affinity Designer 1.5.4 ]

 

Hi guys!

I've been working quite extensively with AD, testing it for producing artworks for a small laser cutting business I own.

And I must thank you since I managed to replace AI for 80% of the time!

(on the computer which controls the machine I have only installed AD)

But there are some bugs that I find here and then.  :D

 

Here's one: I created the attached file by code (example.svg), using the makerjs library and spitting out an svg with precise cm dimensions (as needed for laser cutting).

When I open it in AI, the size is fine (3x3cm total), when I open it in AD, it's 3x3px.

Am I doing something wrong?  :huh:

 

Thanks

 

PS: I also must say that when copying a layer from AD and pasting it in another AD document it doesn't maintain the scale. 

PPS: Is there a way to the Affinity to works always in cm as default?

example.svg


Owner of a laser cutting business && lover of generative design   |   http://vvzen.it

 

Share this post


Link to post
Share on other sites

Hiya,

 

I'll get this logged for the developers to look into further, we do seem to be ignoring the units for the svg width/height (no matter what unit I change it to it does indeed seem to always assume px)

 

We also seem to be reading the stroke width incorrectly. However if I convert the width to 0.025 that will open correctly, but we could definitely be doing better.

 

I'll look into the scaling comment, and as far as i'm aware we should always remember the default unit chosen from within the new document dialog, or are you also looking for stroke width etc to be displayed in cm?

 

Thanks for reporting this.


Serif Europe Ltd. - www.serif.com

Share this post


Link to post
Share on other sites

Thanks for the quick answer!

 

The scaling issue: it's strange, it doesn't always happen. I pasted a 57.5x19.4mm layer into a 60x30cm document and it maintained the size. Then I pasted the same layer in a 215.9x169.8mm doc and it got scaled to 239.8x80.9mm

 

Regarding the default unit, I always launch new documents in cm, yet if I open a file its measures are in px.

I tried with a bunch of .svg files, I don't know if this happens also with .afdesign files (which I think should have the unit measure embedded in the file).

Also, I'd love to globally set (stroke width, transform, etc..) my unit measure to be cm or mm, for example.

 

:)


Owner of a laser cutting business && lover of generative design   |   http://vvzen.it

 

Share this post


Link to post
Share on other sites

Just stumbled over the same problem.

I'm exporting SVG files from SketchUp (3D modeler) using a plugin (flightsofideas). AD is used to prepare the vector data to be CNC milled later.

The SVG carries mm as units, but AD always opens it as px.

As a workaround I found the I can change the document units to mm and also change dpi to 25.4. Then the dimensions of vectors are correct, however I have to adapt the document size, too.

 

It would be great if you find an easier workaround or, of course, fix the "blind" importing of units.

 

Cheers, Robert

Share this post


Link to post
Share on other sites

 

On 10/12/2017 at 9:04 AM, Sean P said:

Thanks for your help with this bug. We have now resolved the problem and will make the fix available in the next Mac release.

So how do we set the export units for the SVG? Mine only comes out with width/height at 100%

Share this post


Link to post
Share on other sites
On 10/12/2017 at 9:04 AM, Sean P said:

Thanks for your help with this bug. We have now resolved the problem and will make the fix available in the next Mac release.

Hi Serif Staff, you reported about to years ago this issue was resolved and the next Mac release would support the ability to export (and import?) SVG in units other than the incredibly awkward "pixel".

As of August, 2019 (version 1.7.2), the export behavior described above is exactly as described at the top of the thread. 

Is this feature hidden somewhere or still on the roadmap or? Having predictably sized SVG files is just as important for people targeting any sort of CNC (laser cutting, die cutting (Cricut, Silhouette), for import into other design tools like Fusion 360 - I do all of these).

Thanks for any help you can provide. I completely love Designer, but dimensioned SVGs are so important. DXF support would be wonderful, too, but SVGs would suffice.

Kevin

Share this post


Link to post
Share on other sites

I'd still love to see the ability to select units for export.

I've discovered that setting my Affinity Designer document to "96 DPI" allows me import the exported SVG into Fusion 360 at the correct size.

Share this post


Link to post
Share on other sites

Finding this SVG/EPS 'pixel' display default a pain here.  Have also noticed strange things with changed graphic dimensions of re-imported SVG's.

In addition, AD does random weird things when printing layout files to our laser print software.  For example, every now and then it will 'print' a file to the spool with a stroke (cut line) massively thicker than set. This then makes the cutter completely ignore the line on the job material.

I often need to export to an SVG then re-import into AD for the cut and engrave lines to render as intended.
Having to reset the measurement default type for every triple handling layout file is one extra time killer.

Share this post


Link to post
Share on other sites

Apologies, just noticed I posted this on a MacOS thread.  But may be worth mentioning this same thing is happening on Windows.

Share this post


Link to post
Share on other sites

I am trying to export a vector file to an SVG and am having the same problem.  Even though the file is set to inches, it seems to export to px.  I see above that this was supposedly fixed, but then others say is wasn't .   I have the latest Mac version and it doesn't appear fixed. 

Share this post


Link to post
Share on other sites

It would have been better to start a new topic about this, rather than adding to this old one that Serif is no longer watching.

@Sean P (since you were involved previously): Any comment on the issue raised in the last few posts?


-- Walt

Windows 10 Home, version 1903 (18362.356), 16GB memory, Intel Core i7-6700K @ 4.00Gz, GeForce GTX 970
Affinity Photo 1.7.3.481 and 1.8.0.486 Beta   / Affinity Designer 1.7.3.481 and 1.8.0.486 Beta  / Affinity Publisher 1.7.3.481 and 1.7.3.475 Beta

Share this post


Link to post
Share on other sites

The original reported issue was strictly relating to Opening/Importing SVG and nothing regarding export - that is what was fixed. Unfortunately there is still an issue when exporting Physical Units being off. However it seems to be a mess in general see my post here (which is still open with development to be fixed):

However if you do require units to be explicitly stated on export to SVG then please create a feature request!

Share this post


Link to post
Share on other sites
12 hours ago, McClary_Design said:

I am trying to export a vector file to an SVG and am having the same problem.  Even though the file is set to inches, it seems to export to px.  I see above that this was supposedly fixed, but then others say is wasn't .   I have the latest Mac version and it doesn't appear fixed. 

As best as I can tell, the export is _ALWAYS_ in Pixels. My biggest issue was importing the SVG into Fusion 360. When I changed my underlying document to "96 DPI" the pixel-based SVG imported perfectly into Fusion 360 (it seems that Fusion 360 assumes that SVGs with pixel units will be 96 DPI).

I really do wish they would export in the document's units but that doesn't seem to be happening.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

These are the Terms of Use you will be asked to agree to if you join the forum. | 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.