Jump to content
You must now use your email address to sign in [click for more info] ×

Recommended Posts

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:

Designer_qEkWIQnhuE.png.237fbef3f1199e760d1774e17d3d28e4.png

 

Exported vial File>Export (plain Objects) and imported again: (2 additional level of unnecessary nesting)

Designer_rFTdmZtjUw.png.9c458e59c4ee490aabde8a9c9ba2f57e.png

And this one exported via Export Persona. Objects within an artboard: (4 level of unnecessary nesting plus an unnecessary curve and a rectangle)

Designer_2zxFFsToIU.png.2049efb560e4b4af9cbe674f1fc830a2.png

 

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

CRM.png.a048d588572393102ac3cc403bfa8af7.png

 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 V2
https://www.timobierbaum.com

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.