Category:SVG simplification by avoidance

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Often large parts of the tool-generated coding are just dead filling and can be stripped without any influence on the graphic.

The Inkscape file Bayer pattern with polish descriptions.svg (>208 KB) contains more than 98% mere garbage, useless code. On of many definitions is e.g.

  • style="opacity:0.81153845999999985; 17 decimal fractions - but fill-opacity and stroke-opacity is defined later:
  • fill:#000000;fill-opacity:0; - it is invisible! (why not 0.00000000000000000 ?)
  • stroke:#000000;stroke-width:1.70000005000000010;stroke-miterlimit:4;stroke-opacity:0.01339286; - practically invisible
  • stroke-dasharray:none;stroke-dashoffset:7.79999999999999980; an offset (17 fractions) for an invisible none dasharray

The mentioned file had been deleted, but Wikimedia has a lot of other examples for similar Inkscape garbage code.


As another example, the first fill of the rectangle with <path fill="#C31A3E" d="m0,0h126v84H0"/> can be avoided with <circle fill="#C31A3E" r="160"/>.
The radius should be . The mentioned file had been deleted, an example for using this method is shown in F1 yellow flag with red stripes.svg.

Media in category "SVG simplification by avoidance"

The following 18 files are in this category, out of 18 total.