DarkClown Posted May 9, 2024 Posted May 9, 2024 Taking a closer look at the SVG format Affinity writes I'm not happy with certain interpretations of the format. 1) Affinity exports the dimesions (height/width) only with 100% values. This is neither enough nor useful. It would be far better to export proper dimensions (coming from the document setup) or at least include the device dependent resolution (dpi) so the importing software can determine correct measurements. 2) Exported objects are nested to an unbearable extent. See following example: Original file: Exported vial File>Export (plain Objects) and imported again: (2 additional level of unnecessary nesting) And this one exported via Export Persona. Objects within an artboard: (4 level of unnecessary nesting plus an unnecessary curve and a rectangle) There may be a SVG design reason for one level of nesting, but I don't see any reason for the folder and data rubbish generated in export persona. Now my question: Is there a way to get rid of this nesting (e.g. by any kind of batch processing). Or would it be possible to run a kind of internal Macro to get rid of this nesting? (It looks simple when you look at this example, but with complex object structures it's not any more ...) - or is it possible to simply export, what I selected for export? Cheers, Timo Quote i7-12700KF, 3.60 GHz, 32GB RAM, SSD, NVIDIA GeForce RTX 3070, Wacom Intuos 4 Tablet, Windows 11 Pro - AP, AD and APublisher V1 and V2https://www.timobierbaum.com
Bryan Rieger Posted May 9, 2024 Posted May 9, 2024 I run EVERY SVG Affinity exports (SVG digital - small size) through SVGOMG https://jakearchibald.github.io/svgomg/ in order to strip out as much junk as possible. It doesn't always get rid of all of the extra groups, but in my experience it does manage to get the majority of them. You can also use the command line version https://www.npmjs.com/package/svgo to quickly process an entire folder full of SVG images. DarkClown 1 Quote
DarkClown Posted May 9, 2024 Author Posted May 9, 2024 Thx. Great hint! I'll check that out. Quote i7-12700KF, 3.60 GHz, 32GB RAM, SSD, NVIDIA GeForce RTX 3070, Wacom Intuos 4 Tablet, Windows 11 Pro - AP, AD and APublisher V1 and V2https://www.timobierbaum.com
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.