wolfend Posted June 4, 2020 Share Posted June 4, 2020 Affinity Designer 1.8.3 See the attached SVG file. If i open it with other apps, e.g., Google Chrome, Inkscape, LightBurn, it opens correctly. See the attached screen captures from each of those apps and note the the path I indicate. When opened in Affinity Designer, the path indicated is incorrectly positioned as shown in the screen capture from it. I did a "select all" to highlight all of the elements of the drawing. Should be easily reproducible. GiftBox.svg Quote Link to comment Share on other sites More sharing options...
Joachim_L Posted June 4, 2020 Share Posted June 4, 2020 This SVG is not so simple. Attached you'll find a view from Illustrator CS6. If you look at the code at the beginning: <svg xmlns="http://www.w3.org/2000/svg" width="145.316mm" height="196.500mm" viewBox="156.342133 53.750008 145.315765 196.500000"> you see that the start origin is not 0 0, so Illustrator interprets the start origin better than AD, but not in place like in Inkscape. Quote ------ Windows 10 | i5-8500 CPU | Intel UHD 630 Graphics | 32 GB RAM | Latest Retail and Beta versions of complete Affinity range installed Link to comment Share on other sites More sharing options...
Staff Sean P Posted June 4, 2020 Staff Share Posted June 4, 2020 Hi wolfend, Do you know what was software/website used to create the SVG? Was it Festi Box Maker at all? Quote Link to comment Share on other sites More sharing options...
polynaught Posted June 4, 2020 Share Posted June 4, 2020 (edited) Hi there, I've got a similar problem on 1.8.3 641 with an SVG exported from https://www.mathcha.io/editor where the exported formula uses a square root (any root for that matter). Try sqrt(a+b) for example. Importing the resulting SVG into Firefox or IE displays it just fine. Importing it into AD however shifts the root symbol to align with the top of the canvas. Export:https://imgur.com/a/rjl5ceq Result:https://imgur.com/a/tS8aWhy Would be nice to have a fix for this. Edit:Could this topic be related? Edited June 4, 2020 by polynaught Quote Link to comment Share on other sites More sharing options...
wolfend Posted June 5, 2020 Author Share Posted June 5, 2020 This SVG was created by the LightBurn app. This is the program I use to drive my laser cutter/engraver. The workflow that I need starts with a collection of existing DXF files. Lightburn ingests these fine and I use them to cut work, in this case a small gift box from heavy paper stock. I need to get this vector data into AD, where it is the basis for creating artwork that is printed on the paper stock before scoring and cutting on the laser. AD does not import DXF, but LIghtBurn exports SVG, which AD is supposed to be able to ingest, so I was hopeful this approach would work. Some of the SVG files created in this way do open in AD OK after being exported from LightBurn. I can deal with scaling and viewport issues (like in the AI example above and I see when AD exports SVG) but when a vector path segment is randomly misplaced like in the example, and all the other apps I have tried interpret the file correctly, it seems like something basic is broken in AD SVG. I don't know if it is related the the issue that polynaught points to, but it is a bit scary if it is and years later the problem persists. Quote Link to comment Share on other sites More sharing options...
wolfend Posted June 5, 2020 Author Share Posted June 5, 2020 BTW, I can get the vector data from the DXF files into AD using CloudConvert to convert them to PDF first, but I was hoping not to have to add this step to the process. Quote Link to comment Share on other sites More sharing options...
polynaught Posted June 5, 2020 Share Posted June 5, 2020 I had an email exchange with the developer of mathcha.io and they believe AD does not handle nested features correctly. When I open their SVG files they make use of lots of nested <g> tags. That however is nothing I see in your SVG file, wolfend. So that could be two different problems here. All in all SVG import seems to have long standing issues in AD. Quote Link to comment Share on other sites More sharing options...
Staff Sean P Posted June 5, 2020 Staff Share Posted June 5, 2020 4 hours ago, wolfend said: This SVG was created by the LightBurn app. This is the program I use to drive my laser cutter/engraver. The workflow that I need starts with a collection of existing DXF files. Lightburn ingests these fine and I use them to cut work, in this case a small gift box from heavy paper stock. I need to get this vector data into AD, where it is the basis for creating artwork that is printed on the paper stock before scoring and cutting on the laser. AD does not import DXF, but LIghtBurn exports SVG, which AD is supposed to be able to ingest, so I was hopeful this approach would work. Some of the SVG files created in this way do open in AD OK after being exported from LightBurn. I can deal with scaling and viewport issues (like in the AI example above and I see when AD exports SVG) but when a vector path segment is randomly misplaced like in the example, and all the other apps I have tried interpret the file correctly, it seems like something basic is broken in AD SVG. I don't know if it is related the the issue that polynaught points to, but it is a bit scary if it is and years later the problem persists. Thanks for that I'll get this passed on to development. There have been some SVG fixes made in 1.8.4, but unfortunately your file is still importing correctly. 1 hour ago, polynaught said: I had an email exchange with the developer of mathcha.io and they believe AD does not handle nested features correctly. When I open their SVG files they make use of lots of nested <g> tags. That however is nothing I see in your SVG file, wolfend. So that could be two different problems here. All in all SVG import seems to have long standing issues in AD. Hi polynaught, I've just tried that equation exported from Mathcha in both 1.8.3 and the 1.8.4 Windows beta as there have been some SVG fixes. Those fixes have corrected the issue with that export, and that equation is now opening correctly for me in 1.8.4. polynaught 1 Quote Link to comment Share on other sites More sharing options...
wolfend Posted June 5, 2020 Author Share Posted June 5, 2020 Sean P, Thanks! I assume you meant that my file is still not importing correctly. The capability for AD to import/export DXF files directly would alleviate much of this messing around. I suspect that is a long standing AD feature request that just doesn't make the cut, but it does not hurt to mention it. Thanks again! Quote Link to comment Share on other sites More sharing options...
Staff Sean P Posted June 5, 2020 Staff Share Posted June 5, 2020 4 minutes ago, wolfend said: Sean P, Thanks! I assume you meant that my file is still not importing correctly. The capability for AD to import/export DXF files directly would alleviate much of this messing around. I suspect that is a long standing AD feature request that just doesn't make the cut, but it does not hurt to mention it. Thanks again! Unfortunately it was your file that is still not importing correctly! DXF support is a much requested feature, so it is definitely something we would like to explore. Quote Link to comment Share on other sites More sharing options...
polynaught Posted August 6, 2020 Share Posted August 6, 2020 Just tested it with the new 1.8.4 release and the issue I reported is indeed fixed. Thanks for that! Mark Ingram 1 Quote Link to comment Share on other sites More sharing options...
Jowday Posted August 6, 2020 Share Posted August 6, 2020 For the record, CorelDRAW 2020: Quote "The user interface is supposed to work for me - I am not supposed to work for the user interface." Computer-, operating system- and software agnostic; I am a result oriented professional. Look for a fanboy somewhere else. “When a wise man points at the moon the imbecile examines the finger.” ― Confucius Not an Affinity user og forum user anymore. The software continued to disappoint and not deliver. Link to comment Share on other sites More sharing options...
wolfend Posted October 2, 2020 Author Share Posted October 2, 2020 Just tested with version 1.8.5 and SVG import is still broken. Quote Link to comment Share on other sites More sharing options...
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.