Original file(SVG file, nominally 319 × 213 pixels, file size: 1 KB)

This is a file from the Wikimedia Commons. The description on its description page there is copied below.

Summary

Description Early attempts to display SVG files.
Date 7 January 2003
Source Own work
Author Brion VIBBER
Permission
(Reusing this file)
Public domain This work has been released into the public domain by its author, Brion VIBBER. This applies worldwide.

In some countries this may not be legally possible; if so:
Brion VIBBER grants anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

Other versions
Flag of Esperanto.svg (5 code lines, 229 bytes)

Code

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg
   width="318.898"
   height="212.598"
   id="svg205"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
   xmlns:xlink="http://www.w3.org/1999/xlink"
   sodipodi:docname="Flago_de_Esperanto.svg"
   sodipodi:docbase="./">  <sodipodi:namedview
     id="base">
  </sodipodi:namedview>
  <defs
     id="defs207">
  </defs>
  <rect
     width="318.898"
     height="212.598"
     x="0"
     y="0"
     style="font-size:12;fill:#009900;fill-rule:evenodd;stroke-width:1pt;"
     id="rect209"
     transform="matrix(1 0 0 1 1.88143 0.000162242)">
  </rect>
  <rect
     width="106.299"
     height="106.299"
     x="0"
     y="0"
     style="font-size:12;fill:#ffffff;fill-rule:evenodd;stroke-width:1pt;"
     id="rect210">
  </rect>
  <polygon
     points="42.4307,74.1635 17.0888,55.974 -6.94187,73.7921 2.52621,44.0696 -21.8456,26.7212 9.34788,26.5411 18.3159,-1.99881 28.1265,27.6123 58.0409,27.3221 32.9106,45.8029 42.4307,74.1635 "
     transform="matrix(1 0 0 1 34.8728 15.835)"
     style="font-size:12; fill:#009900; fill-rule:evenodd; stroke-width:1pt; fill-opacity:100%; "
     id="polygon211">
  </polygon>

</svg>

(file size: 43 code lines, 1333 bytes) HKC CEO分享到: .

Simplified code

The example above is overly complicated and bloated:

  • The aspect ratio 2:3 is realized with 318.898×212.598, but 300×200 or 600×400 does the same more simply.
  • font-size does not need to be declared, as there is no text in the graphic.
  • fill-rule, stroke-width, fill-opacity declarations are not needed, as these properties are not invoked anywhere.
  • Transformations are not needed, as the image is not scaled or rotated.

This is typical Sodipodi/Inkscape overkill, even on images consisting of just a few simple geometric shapes. The same image can be produced with just a few lines of code:

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="600" height="400">
<path fill="#009900" d="m0,0H600V400H0"/>
<path fill="#FFFFFF" d="m0,0h200v200H0"/>
<path fill="#009900" d="m58,157 41-126 41,126-107-78h133"/>
</svg>

File size: 6 code lines, 255 bytes. This simplified version passes the W3C Markup Validation Service but can still be opened with Inkscape.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current12:48, 3 December 2012Thumbnail for version as of 12:48, 3 December 2012319 × 213 (1 KB)RoqqRReverted to version as of 00:19, 31 October 2005
00:20, 31 October 2005Thumbnail for version as of 00:20, 31 October 2005319 × 213 (1 KB)CryptoQuickReverted to earlier revision
00:19, 31 October 2005Thumbnail for version as of 00:19, 31 October 2005319 × 213 (1 KB)CryptoQuickReverted to earlier revision
02:08, 10 September 2005Thumbnail for version as of 02:08, 10 September 2005319 × 213 (1 KB)Brooke VibberReupload to test
13:35, 15 August 2003Thumbnail for version as of 13:35, 15 August 2003319 × 213 (1 KB)SansculotteReverted to earlier revision
13:34, 15 August 2003Thumbnail for version as of 13:34, 15 August 2003319 × 213 (1 KB)SansculotteReverted to earlier revision
10:11, 7 January 2003Thumbnail for version as of 10:11, 7 January 2003319 × 213 (1 KB)Eloquencetrying to edit SVG
08:26, 7 January 2003Thumbnail for version as of 08:26, 7 January 2003319 × 213 (1 KB)Brooke VibberSimple example SVG image; Esperanto flag (drawn by me in Sodipodi)

The following 2 pages use this file:

Metadata