RazrFalcon / svgcleaner

svgcleaner could help you to clean up your SVG files from the unnecessary data.
GNU General Public License v2.0
1.62k stars 93 forks source link

Keep groups by id #225

Open Artoria2e5 opened 3 years ago

Artoria2e5 commented 3 years ago

It is useful at times to want to keep some groups while allowing svgcleaner to go wild on the rest. A "no-ungroup" list might be handy in these situations.

Having a selective ungroup may also help with the implementation of <switch> support. Currently I handle these sort of files by manually commenting out the element and the attributes with ungroup turned off, but that's suboptimal.