Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Reduce SVG icon file size #2799
Use Inkscape File -> clean up document functionality to remove SVG bloat.
It seems this function was previously called "Vacuum defs" in Inkscape,
In some files it also changes the way paths are defined, but without
The files still contain Inkscape metadata like the window size, version
Also note that for the file publicdomain/Information_icon.svg as well as
This is intended to be a first step to reduce them in size, that does not require additional tooling or further analysis whether we lose anything valuable as discussed in #2017.
As the files still contain (a lot of) useless metadata I would expect we can still save a sizeable amount. That would be the next step/a follow up.
What kind of data are you thinking about?
The SVG has a
Would there be any use case for editing the SVG and wanting to have gradients previously used when editing the file, which are not actually used in the current file/content/image though?
If we want to edit the image, we want to edit the current image, no?
I mean, we can leave the bloated SVGs, but I would think if we were to edit them we would edit the current content. I won’t say I’m sure this is metadata of no use whatsoever, in inkscape or as parameters to reproduce these icons from fresh - maybe there’s Inkscape features or extensions I am not aware of. Personally, I would minify them, even to the point of the original PR. I do not see what we would edit if not the paths that are what makes out the content as it is.