File talk:Chess Board.svg

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

Strategies for SVG drawing[edit]

The versions of File:Chess board.svg show several different concepts, worth to be discussed.

  • 1st version, 2006-10-01 by Nevit (Sodipodi-Inkscape, 13 822 bytes)
resembles hardly to the appearance of a chess board. One single path (this element needs 12 245 bytes) with hundreds of cubic curves gives not any straigt line. Instead of squares round irregular structures are shown - but that with an accuracy of seven decimal fraction digits.
  • 2nd version, 2009-11-23 by Tryphon (Inkscape 19 941 bytes)
is a chess board. The frame and the 64 rectangles are stupidly one after the other defined, with the Inkscape-typical over-attributing for each one, not using any grouping synergies. In fact the definition is accurat to one decimal fraction digit, but because of the Inkscape-typical transformations five digits are needed to correct the transformation aberration. Each one of the 64 squares need ~233 bytes for definition.
  • 3rd version, 2009-11-23 by AnonMoos (manual review, 3 740 bytes)
has still the 64 + 1 rectangles, but by clever grouping most of the repeated attributes become obsolet. This is a swift and effectful method to reduce such codings. The transformation deviation needing the avoidable correction with five decimal digits is still in use.
I was just trying to do a quick and easy simplification that would reduce the file size by over 500%, and not trying to rethink the file from scratch... AnonMoos (talk) 12:45, 31 December 2010 (UTC)
  • 4th version, 2010-01-22 by McSush (manual, 519 bytes)
A complete new concept showing skill and knowledge. With only eight path-drawn rectangles, four horizontal ones overlaid by four vertical ones using the fill-rule "evenodd" all is done inside the outer frame rectangle. The coordinates are specified as integers, instead of transformations the viewBox is used.
Angoumois
  • 5th versions, 2010-05-18 by Tryphon (2×manual, 730 bytes)
Another new concept. After defining four of the squares, they are cloned to a filling pattern for the outer frame. A similar solution shows the drawing Flag of Angoumois, while LinkFA-star Aragon (LinkFA-star Aragon.svg) is another example for filling patterns.
From this version on the white squares are really white, in prior versions they had been transparent.
  • 6th version, 2010-12-26 by Sarang (manual, 368 bytes)
is just a review of the 4th version from McSush. Alternate concepts resulted in larger files, e.g. the stroke-dasharray, used for November (November.svg) and Checkermotoslogo (Checkermotoslogo.svg), was not the best choice.
Remark: Coding as stroke-width="1" and fill="black" is default parameter value and therefore always redundant (except when overwriting another group attribute). Its removal makes a file size of 339 bytes. Sure it will be possible to find more reductions. -- 08:49, 31 December 2010 Sarang
  • 7th version, 2012-01-30 by Sarang (manual, 296 bytes)
review of 6, removing default values and avoiding negative signs