X-Raym Posted December 18, 2021 Share Posted December 18, 2021 (edited) Original title : SVG with shape croping doesn't open right Hi, I'm not sure my thread title is the correct terminology, but the bug is simple to reproduce, so it might lead to the real source of the issue. So there is this SVG design here: Unfortunately, it doesn't right in Affinity Designer (1.11) The left shape contains several cropping and this doesn't get displayed as expected. Note that FireFox displays it just right, and Illustrator open it right as well. Thanks for taking a look! EDIT: croping doesn't seems to be the issue but transform SVG seems to be (check discussion below). Thread renamed accordingly. Edited December 19, 2021 by X-Raym change title Quote Link to comment Share on other sites More sharing options...
Paul Mc Posted December 18, 2021 Share Posted December 18, 2021 I've recently experienced this with old projects that were 100% created and saved in AD and also exported as SVG. Reloading the old SVG appeared to mangle the crop, however PowerToys and Firefox displayed them correctly. Quote Link to comment Share on other sites More sharing options...
GarryP Posted December 19, 2021 Share Posted December 19, 2021 I think part of the problem may be that the Affinity applications can’t handle the “transform=rotate()” attribute properly, e.g:https://forum.affinity.serif.com/index.php?/topic/51530-importing-svg-in-designer/&do=findComment&comment=829517 Because of this, in some areas of this design the clipping mask has been moved away from the thing it is clipping. For example, open the SVG in Designer and look at the each of the layers selected in my screenshot individually – the curve is nowhere near the clipping mask. X-Raym 1 Quote Link to comment Share on other sites More sharing options...
X-Raym Posted December 19, 2021 Author Share Posted December 19, 2021 @GarryPi Good bug hunting! I have edit thread title and first post accordingly. Quote Link to comment Share on other sites More sharing options...
X-Raym Posted December 19, 2021 Author Share Posted December 19, 2021 Workarround: converting the SVG to EPS seems to works well. But a fix would be appreciated for sure. Quote Link to comment Share on other sites More sharing options...
Paul Mc Posted December 19, 2021 Share Posted December 19, 2021 @GarryP I didn't notice that before. The ordering of the groups is incorrect on reload: Moving the highlighted ellipse down a level in the group seems to fix it. Quote Link to comment Share on other sites More sharing options...
GarryP Posted December 19, 2021 Share Posted December 19, 2021 Paul Mc: I wonder if that ‘ordering issue’ is related to these threads?:https://forum.affinity.serif.com/index.php?/topic/119864-svg-files-are-not-saved-correctly/https://forum.affinity.serif.com/index.php?/topic/87979-issues-with-exporting-svg-files/ Paul Mc 1 Quote Link to comment Share on other sites More sharing options...
Paul Mc Posted December 19, 2021 Share Posted December 19, 2021 29 minutes ago, GarryP said: Paul Mc: I wonder if that ‘ordering issue’ is related to these threads?:https://forum.affinity.serif.com/index.php?/topic/119864-svg-files-are-not-saved-correctly/https://forum.affinity.serif.com/index.php?/topic/87979-issues-with-exporting-svg-files/ For me this was slightly different though. The image above (and several similar ones using masking/cropping to a shape) were created in AD and then exported to SVG and as SVGs they worked fine. The issue now is when reading the SVG back into AD. I (stupidly?!) didn't save the AD files as I thought the SVGs would be adequate should I need to make any mods later so I've no reference to compare with. All the ones with masks fail to load correctly. So my issue is with import rather than export. Quote Link to comment Share on other sites More sharing options...
GarryP Posted December 19, 2021 Share Posted December 19, 2021 Ah I see, well it seems like the developers have a fair few issues to look at regarding both SVG import and export. Quote Link to comment Share on other sites More sharing options...
X-Raym Posted December 27, 2021 Author Share Posted December 27, 2021 Note: this opens nicely in VectorStyler (if you need another app to try). 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.