jbosboom / svg-tiler

tiles SVGs from ASCII input (deprecated: use edemaine/svgtiler instead)
1 stars 0 forks source link

Remove empty or unreferenced elements to reduce output file size #4

Open jbosboom opened 8 years ago

jbosboom commented 8 years ago

Inkscape struggles to load some tiler outputs because they're large compared to many SVG files. We should remove empty <g> and <defs> elements, <metadata> elements on symbols (but they may contain license information about the included files), unreferenced symbols (or avoid emitting them entirely), and default attribute values and redundant namespace definitions (Batik loves these last two for some reason).