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.
Pages in category "Category:SVG simplification by avoidance"
- File:10x10 checkered board transparent.svg
- File:7360 pinout.svg
- File:Achivement ribbon of the Wyoming National Guard.svg
- File:F1 yellow flag with red stripes.svg
- File:Flag colors of France -Template.svg
- File:Flag of Andalucía (no CoA).svg
- File:Flag of the Ottoman Empire (Thicker Crescent).svg
- File:Gluelebensdauerrp-de.svg
- File:ISO 639 Icon el.svg
- File:No Vandalism.svg
- File:Roj emblem.svg
- File:South Azerbaijan red flag.svg
- File:SVG-Unschärfe-Filter.svg
- File:Tasreg5.svg
- File:The Noun Project logo.svg
- File:Thermodynamic-using-cambria-math.svg
- File:U+21F4.svg
- File:Uroko2.svg