msageryd Posted December 20, 2019 Posted December 20, 2019 The attached file (adr_6.2.svg) is an optimized SVG (with SVGO). It renders correctly in Safari and Chrome on MacOS Mojave, but Affinity Design does not render it correctly. The non optimized file (ADR_62._original) works in AD. Something in the optimization is not handled well by AD. The fact that the browsers renders correctly leads me to believe that AD has a bug. This is how the original SVG looks in AD. Chrome and Safari renders the optimized image like this as well: This is how the optimized image it looks in AD: The SVGO params: svgo = new SVGO({ plugins: [ { cleanupAttrs: true, }, { removeDoctype: true, }, { removeXMLProcInst: true, }, { removeComments: true, }, { removeMetadata: true, }, { removeTitle: true, }, { removeDesc: true, }, { removeUselessDefs: true, }, { convertTransform: true, }, { removeEditorsNSData: true, }, { removeEmptyAttrs: true, }, { removeHiddenElems: true, }, { removeEmptyText: true, }, { removeEmptyContainers: true, }, { removeViewBox: true, }, { cleanUpEnableBackground: true, }, { convertStyleToAttrs: false, //do not activate! }, { convertColors: true, }, { convertPathData: true, }, { convertTransform: true, }, { removeUnknownsAndDefaults: true, }, { removeNonInheritableGroupAttrs: true, }, { removeUselessStrokeAndFill: true, }, { removeUnusedNS: true, }, { cleanupIDs: true, }, { cleanupNumericValues: true, }, { moveElemsAttrsToGroup: true, }, { moveGroupAttrsToElems: true, }, { collapseGroups: true, }, { removeRasterImages: true, }, { mergePaths: true, }, { convertShapeToPath: false, }, { sortAttrs: true, }, { transformsWithOnePath: true, }, { removeDimensions: true, }, ], }); adr_6.2.svg ADR_6.2_original.svg Quote
Staff Sean P Posted January 6, 2020 Staff Posted January 6, 2020 Hi msageryd, Thank you very much for the files - they're much appreciated. I've passed this onto development to be investigated. Quote
Staff Patrick Connor Posted August 5, 2020 Staff Posted August 5, 2020 We have made fixes/improvements to this area (Curves inside an optimised SVG open incorrectly) of the program in the latest release. The fixes and how to update are described in these forum posts. Affinity Designer 1.8.4 for Windows ( Microsoft Store and Affinity Store ) Affinity Designer 1.8.4 for macOS ( Mac App Store and Affinity Store ) Affinity Designer 1.8.4 for iOS ( Apple iPad Store ) Affinity Photo 1.8.4 for Windows ( Microsoft Store and Affinity Store ) Affinity Photo 1.8.4 for macOS ( Mac App Store and Affinity Store ) Affinity Photo 1.8.4 for iOS ( Apple iPad Store ) Affinity Publisher 1.8.4 for Windows ( Microsoft Store and Affinity Store ) Affinity Publisher 1.8.4 for macOS ( Mac App Store and Affinity Store ) We would appreciate you checking that this issue has now been resolved for you, Quote Patrick Connor Serif Europe Ltd Latest V2 releases on each platform Help make our apps better by joining our beta program! "There is nothing noble in being superior to your fellow man. True nobility lies in being superior to your previous self." W. L. Sheldon
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.