File talk:DrSuper super super super.svg

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

Reduction ratio 1080÷2756993

[edit]
Basic element (10 triangles)
Only the small colored triangles are counted, none of the 14 other ones

At that point, this file is the superstar of all simplification work. It is not Adobe-made with all the Adobe pgf data blocks, it is mere coding generated by Sodipodi. Sodipodi drew stupidly 10 000 different pathes, one for each of the triangles.

After the disgarbaging it has now 0.03% of its former file size. With other words, more than 2 552 times (2 756 993÷1 080) the present file would fit into the size of the former Sodipodi drawing.

This example proofs again that Sodipodi is a tool not recommendable for very simple structured files like that one. In such cases better-quality results can be obtained by manual drawing, than with any SVG-generating tool.

You may also look for

  • DrSuper super super.svg, another example (1000 triangles) with a reduction ratio of 949÷268 301.
  • DrSuper super a.svg consists of 100 triangles, reduction ratio is 625÷28 317.
  • Dr super.svg, the basic element shown right, consisting of ten triangles, reduction ratio is 369÷6 412.


Reduction ratio 273÷50543

[edit]
50 543 → 273 bytes

Quite the same does Sodipodi/Inkscape when drawing POL Lubin flag.svg: 160 times a rectangle is drawn, stupidly one after the other, each one with all the attribute overhead of about 314 bytes:

       <rect
          style="fill:red;fill-opacity:1;fill-rule:nonzero;
                 stroke:none;stroke-width:2;stroke-miterlimit:4;
                 stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
          id="rect3134"
          width="100"
          height="100"
          x="369.68521"
          y="-379.81741" />

"stroke" is none, nevertheless Sodipodi defines its

  • stroke-width,
  • stroke-opacity (default="1"),
  • stroke-miterlimit (default="4"),
  • stroke-dasharray (default="none"),
  • stroke-dashoffset (default="0" and stroke-dasharray="none"!)

Doing it that way, the file gets a size of 50.543 bytes. The rectangle above would be as well defined by
<rect fill="red" width="100" height="100" x="370" y="-380"/>

By using a more reasonable drawing method, in this case "dasharray", the file is reduced to 273 bytes.



With "stroke-dasharray" comparable reductions are achieved at other SVG stripe patterns, e.g.