Category:SVG simplification by avoidance
Files generated by SVG editors are often filled with large parts of dead code which can be stripped without any influence on the graphic.
For example, a file of over 208 kB generated by Inkscape contained more than 98% mere garbage. It contained useless code like the following:
style="opacity:0.81153845999999985
; 17 decimal fractions - butfill-opacity
andstroke-opacity
are defined later asfill:#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 invisiblestroke-dasharray:none;stroke-dashoffset:7.79999999999999980
; an offset with 17 decimal places for an invisible none dasharray
One particularly convincing example is South Azerbaijan red flag.svg, a simple rectangle, whose initial version (generated by Inkscape) consumed a thousand times more storage space.
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.
-
10x10 checkered board transparent.svg 500 × 500; 255 bytes
-
7360 pinout.svg 396 × 624; 3 KB
-
Achivement ribbon of the Wyoming National Guard.svg 218 × 60; 308 bytes
-
F1 yellow flag with red stripes.svg 512 × 384; 153 bytes
-
Flag colors of France -Template.svg 300 × 300; 252 bytes
-
Flag of Andalucía (no CoA).svg 750 × 500; 199 bytes
-
Flag of the Ottoman Empire (Thicker Crescent).svg 900 × 600; 447 bytes
-
Gluelebensdauerrp-de.svg 620 × 319; 3 KB
-
ISO 639 Icon el.svg 400 × 180; 446 bytes
-
No Vandalism.svg 336 × 336; 576 bytes
-
Roj emblem.svg 1,000 × 1,000; 734 bytes
-
South Azerbaijan red flag.svg 900 × 600; 173 bytes
-
SVG-Unschärfe-Filter.svg 300 × 200; 2 KB
-
Tasreg5.svg 156 × 135; 258 bytes
-
The Noun Project logo.svg 160 × 160; 353 bytes
-
Thermodynamic-using-cambria-math.svg 36 × 50; 177 bytes
-
U+21F4.svg 16 × 16; 314 bytes
-
Uroko2.svg 512 × 512; 177 bytes