File talk:Korea Traffic Safety Sign - Signal Light - Caution.svg

Simple drawing edit

This is a very simple drawing. It consists just of two rectangles and a yellow circle, e.g.

<g fill="none" stroke="#222" stroke-width="3">
<rect x="2" y="2" width="196" height="196"/>
<rect x="16" y="16" width="168" height="168"/>
<circle fill="#FCD205" cx="100" cy="100" r="75"/>
</g>

The two rectangles can be drawn simple by one path like

<path fill="none" stroke="#222" stroke-width="3"
d="m2,2h196v196H2zm14,14h168v168H16z"/>
<circle fill="#FCD205" cx="100" cy="100" r="75"/>

so avoiding the <g>-clause.

The previous drawing by Inkscape/Sodipodi made it more complicated, defining redundantly stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none
and the stroke-width:2.74500012; with useless high precision.
Each of the 22 rectangles is double defined, as shape and as area.

Huge filler edit

But additionally Inkscape/Sodipodi generates 195 times the useless coding sequence

    <inkscape:perspective
       id="perspective13862"
       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
       inkscape:vp_z="1 : 0.5 : 1"
       inkscape:vp_y="0 : 1000 : 0"
       inkscape:vp_x="0 : 0.5 : 1"
       sodipodi:type="inkscape:persp3d" />

of 265 bytes each time, making 51 675 bytes (50.46 KB).
With some other useless coding the file size rises to finally 52 839 bytes (51.6 KB).

With less than 250 bytes of coding (0.47% of previous size) everything can be declared to generate this drawing.

More examples edit

In summer 2010, user Orionman made quite a lot of vector graphics with huge file sizes (andh long file names) that can be reduced easily down to less than a percent. Just as an example, some others of these files are disgarbaged from the Inkscape/Sodipody crap, e.g.

Return to the file "Korea Traffic Safety Sign - Signal Light - Caution.svg".