File talk:Flag of the Tetovo Municipality, North Macedonia.svg

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

The extremely simple file created by Illegitimate Barrister with Sodipodi/Inkscape had several errors.

  • To define a size of 400 × 200 px, the coding height=56.620834mm" and width="113.77084mm is used, but that defines 403 × 201 px which is not a relation of 2 : 1.
  • Because of a cascade of 3 transformations (accuracy: six decimal fractions) with 7 cascaded grouping instructions, the coordinate values are very complicated,
    and only the "black" stripe (coded with #020401) covers the left edge; the red and yellow stripe start a bit away, leaving a transparent failure, which can be seen clearly.
  • In addition, the validator showed an "Inkscape element grid" SVG error:
W3CiThe source code of the previous SVG was invalid due to an error.

By drawing that very simple file by hand, the errors are removed and it's file size could be reduced from 5196 bytes to 4% of that.

SVG code

<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="200">
<path d="m0,0h400v200H0" fill="#FFD610"/>
<path d="m0,0h400v176.7H0"/>
<path d="m0,0h400v96.7H0" fill="#CE1217"/>
</svg>