Lukas. Posted May 13, 2023 Share Posted May 13, 2023 (edited) Hi, I have this svg file (attatched) which is not correctly imported by Affinity Designer. I don't think it's particulary a problem with v2 (as I tested it with v1 as well - same result) but that's the one I'm using now - so I'm posting it in this forum. As you can see in the screenshot above all the outlines of the flowers are messed up. The stroke is too thin and the shape is filled with black color. Inkscape for example and my browser seem to import / render the file correctly however. Any help would be appreciated, thanks in advance! Tested on: Windows 10.0.19045 Build 19045 Affinity Designer v2.0.4 (hardware accelaration on/off) Affinity Designer v1.10.6.1665 Inkscape 1.2.2 (732a01da63, 2022-12-09) Flowers.svg Edited May 13, 2023 by Lukas. fixed formatting Quote Link to comment Share on other sites More sharing options...
v_kyr Posted May 13, 2023 Share Posted May 13, 2023 1 hour ago, Lukas. said: As you can see in the screenshot above all the outlines of the flowers are messed up. The stroke is too thin and the shape is filled with black color. Inkscape for example and my browser seem to import / render the file correctly however. Any help would be appreciated, thanks in advance! Well, if you open that file inside a text editor and review/inspect the SVG XML code there, you will determine that certain of the numbered SVG style settings are split-up into multiple settings (.cls-10, .cls-12, .cls-14) ... ... and the Affinity SVG parser get's probably puzzled by those! If one instead defines and edits the styles (.cls-10, .cls-12, .cls-14) in a none split-up manner like here ... ... then the Affinity SVG parser doesn't get puzzled and can shows up the right SVG output instead ... Here's the slightly modified SVG file in terms of it's styles definitions ... test_svg.svg So all in all, as can be seen above, it's in this case overall a matter of how the SVG XML styles are defined and that the Affinity SVG parser isn't as flexible and foolprove here in parsing those in, in contrast to the SVG parsers used/included in webbrowsers and Inkscape! Dan C and Lukas. 2 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 Link to comment Share on other sites More sharing options...
Staff Dan C Posted May 14, 2023 Staff Share Posted May 14, 2023 Hi @Lukas., Thanks for your report & file provided! Using the great information from @v_kyr above, I will be logging this with our development team in order to help improve Affinitys SVG importer in a future update. Hopefully the fixed file provided in the above post should help workaround this issue in the meantime. I hope this helps, and many thanks to v_kyr for your work here Lukas. and v_kyr 2 Quote Please note - I am currently out of the office for a short while whilst recovering from surgery (nothing serious!), therefore will not be available on the Forums during this time. Should you require a response from the team in a thread I have previously replied in - please Create a New Thread and our team will be sure to reply as soon as possible. Many thanks! Link to comment Share on other sites More sharing options...
Lukas. Posted May 14, 2023 Author Share Posted May 14, 2023 Thanks v_kyr for the technical insight provided and thanks to Dan C as well for passing it along to the devs! 👍 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.