Scalable Vector Graphics (SVG) are a type of image based on vector graphics such as points, lines and curves. The wiki server renders the image each time as a PNG image, preventing pixelation at higher magnification. Because they are stored as a text file, simple but large images can be considerably smaller, as large, single-colored areas require significantly smaller space.
Making SVG images
There are a number of useful software packages for making SVG images. Two important free packages include gnuplot and Inkscape.
Gnuplot is a graphing program with multiple outputs, including SVG. It can be used to plot paired data and functions in a 2D plot; several possibilities exist for 3D plots. It is usually preferable to generate graphs with gnuplot (or a similar program such as Ploticus) instead of a drawing program, although the latter can be used for additional image manipulation.
Inkscape is a drawing program for SVG images.
Unfortuantely, the Wikimedia rendering program has some issues with Inkscape images. To alleviate these programs, the following are recommended:
- Only certain fonts are available, and unfortunately, they are not usually common ones. Fonts are usually substituted if they are not available. Wikipedia recommends DejaVu Sans and DejaVu Serif (despite their hideousness).
Flowed textcan create problems as it may not render or render as rectangle. Select the text boxes and select
Convert to Textunder the Text menu. Scaled text (by using the handles) will not function properly.
- Arrowheads and dashed lines do not render properly. Select them, and select
Object to Pathunder the Path menu.
- Images are the size of the box in Inkscape. Usually, you will want to change the size of the image with
Resize page to content.
- Save the file as
Plain SVGinstead of
Inkscape SVG. The latter contains data for editing the image which is no longer necessary when it is uploaded.
- If your image still doesn't render properly, other tips may be found here and here.