NixOS / nixos-artwork

Nix related artwork
311 stars 77 forks source link

Vacuum SVGs with Inkscape #117

Closed danth closed 6 months ago

danth commented 7 months ago

I ran all SVG files through the following command:

inkscape --vacuum-defs --export-overwrite **/*.svg

This cleans up the definitions of any gradients and so on which are no longer used in the image.

Unlike #37 and #38, this does not affect Inkscape metadata, guides or layers.

samueldr commented 6 months ago

Hmmm...

Just a note, to anyone looking at the history here:

It looks like files with <tspan /> elements will converged toward two states. Pick the one with the lower id numbers.

samueldr commented 6 months ago

So, I believe this achieves a different goal from #37 and #38.

The TLDR gist of it is that it's like doing the two of those actions:

So what happens doing this is that the document is cleaned (who knew) of unused things. And then the document is re-saved, which will re-adjust some positions by virtue of how inkscape works.

Though, I'll note that those positions are likely inconsistent only because of how old some of the files are.

samueldr commented 6 months ago

Where are my manners?

Forgot to say:

:wave: Hi!

Thank you for your contribution!