Siggaard Posted August 14, 2015 Share Posted August 14, 2015 Hi, First of all thanks for making such awesome products. Love it!! Im slowly trying to replace my old Adobe suite with Affinity D and P. Today I ran into something I dont understand. I tried to remove some hidden layers from a SVG made with Adobe Illustrator and export it again with Affinity Designer. The file size went from 14kB to 524kB with standard settings. Im not sure why the filesize would change that much. Are there any settings did not see? There is no raster in the file. When i look in the SVG file, I see a lot more polygons. Are there any way to lower the polygon count? The source material did not have that much polygons. I uploaded both files. Just wanted to let you know. Source.svg Affinity.svg Quote Link to comment Share on other sites More sharing options...
Staff MattP Posted August 14, 2015 Staff Share Posted August 14, 2015 Hi Siggaard, Welcome to the forums! :) I know this sounds really weird, but the problem is actually caused by some of the strokes having the 'Miter' join style set on them. If you open 'source.svg' into Affinity Designer and then hit Cmd+A (to Select All) then go to the Stroke panel and choose 'Round' join to force all strokes to a round join then try to export again you actually get a 11.35KB file (see attached) as the SVG export. This is simply because of our miter joins being slightly different to other programs in their behaviour when you exceed the miter limit (we trim them to look nice, other programs pretend they were supposed to be bevels so they jump quite alarmingly when you're viewing a real-time preview of moving a node, for example). To rectify this and ensure that your document looks correct, all strokes with miter set on them are expanded into polygons with lots of straight lines so they look the same. I've mentioned this before that I'll look into fixing our output to first check if it was necessary to do this, prior to forcing the output to bloat in this way. Affinity Export.svg Hope that made some sense? Thanks again, Matt Quote Link to comment Share on other sites More sharing options...
Siggaard Posted August 14, 2015 Author Share Posted August 14, 2015 Thanks for your help and explanation, Matt. :-) Have a nice weekend 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.