Manual:$wgSVGConverters/fr

Détails
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. Un programme externe est nécessaire pour réaliser cette 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.

Valeurs par défaut
1.13

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


 * - the value of, if set; otherwise  (note the slash) will be stripped
 * - chemin vers le fichier SVG d'entrée
 * - the path where MediaWiki will look for the output PNG file
 * - largeur souhaitée
 * - hauteur souhaitée

Exemple
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. Par exemple:

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 command-line.

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 (and might be packaged separately):

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. Par exemple:

OpenBSD et FreeBSD
On OpenBSD and FreeBSD installations rsvg was renamed to rsvg-convert: