Manual:$wgSVGConverters

Details
Scalable Vector Graphics (SVG) may be uploaded as images.

However, SVG support in browsers is patchy – in particular, Internet Explorer before version 9 could not understand the SVG format at all.

Therefore, it is necessary to convert SVG format images to PNG format as a fallback.

An external program is required to perform this conversion.

This array contains a list of SVG conversion programs and the command line for each one.

To select which one to use on your system, set  variable.

Usage
The following variables can be specified in the command line:

the value of , if set; otherwise   (note the slash) will be stripped the path to the input SVG file the path where MediaWiki will look for the output PNG file the desired width the desired height

The exclamation mark ( )' is a meta-character in Unix shells and must be escaped with a backslash. In the code sample above, this can be seen in the command for ImageMagick. On Windows-family operating systems, the exclamation mark ( ) is not a meta-character in the shell and does not need to be escaped.

Example
A fictitious example, which assumes that an executable named  is on the system path:

Windows
On Windows, where the executable path may contain spaces, you may need to quote the executable name.

For example:

On Windows-family operating systems, the exclamation mark ( ) is not a meta-character in the shell and does not need to be escaped.

Inkscape.exe does not accept command line arguments in the default release.

You will need to download inkscapec.exe.

Then set the $wgSVGConverters to the following.

The inkscapec.exe handles both long and short versions of the commandline.

On Windows-family operating systems, the exclamation mark ( ) is not a meta-character in the shell and does not need to be escaped.

Linux
On some Linux installations (e.g. OpenSuSE 10.3, Debian, Ubuntu) rsvg is renamed:

If the Java executable is not in the path, it must be specified to use batik, or a "Thumbnail creation failed:" message will be displayed.

For example:

Exclamation mark (<tvar|1> </>)' is a meta character in Unix shells and must be escaped with a backslash.

Debian Squeeze
If ImageMagick is used, then the following will be needed for SVG viewing:

apt-get install imagemagick libmagickcore3-extra php5-imagick

OpenBSD
On OpenBSD installations rsvg was renamed to rsvg-convert: