Clean up of unused gradient
We use Inkscape 0.91 a lot for drawing new icons for the GPL software Chamilo LMS. Recently, we decided to start testing the direct usage of SVG format instead of PNG. We've added that as a test mode in our recent 1.10 version.
However, we have never (so far) been active on the bugtracker (although we do contribute to a series of other projects).
Things were all good but we realized SVG icons that we generated this way were very heavy-weight (the SVG wheighted more bytes than the 16x16, 32x32, 64x64 *and* 128x128px size icons summed up).
So we started reviewing the components of the SVG and found that the filling and border box was mentioning a series of gradients that were not used in our icons.
Then we looked for an option to remove those unused gradients, but only found it in the XML editor.
When editing an icon based on another one, the list of gradients (or just objects in general) to remove from the XML editor can be very long, and the process to remove them is pretty much removing and seeing if the icon changes, which is... well... suboptimal.
So, my question is this: is there any feature hidden somewhere that would allow me to remove automatically all the unused components of my SVG?
Finally, I'd like to thank the team for your great work. It really enables us to give users a more beautiful application. You can check our icons and use them (CC BY-SA) from https:/
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Inkscape Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- su_v
- Solved:
- Last query:
- Last reply: