Manual:$wgSVGConverters
From MediaWiki.org
| SVG: $wgSVGConverters | |
|---|---|
| Scalable Vector Graphics (SVG) may be uploaded as images. |
|
| Introduced in version: | 1.4.0 |
| Removed in version: | still in use |
| Allowed Values: | |
| Default Value: | (see below) |
Other settings: Alphabetical | By Function
Contents |
[edit] Details
Scalable Vector Graphics (SVG) may be uploaded as images.
Since SVG support is not yet standard in browsers (all except Internet Explorer render SVGs, but not very accurately), it is necessary to rasterize SVGs to PNG as a fallback format. An external program is required to perform this conversion.
[edit] Default value
array( 'ImageMagick' => '$path/convert -background white -geometry $width $input $output', 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output', 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output', 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input', 'rsvg' => '$path/rsvg -w$width -h$height $input $output', );
Note: 'rsvg' was added in 1.5.0
[edit] Platform-specific notes
On Windows, where the executable path may contain spaces, you may need to quote the executable name. For example:
$wgSVGConverters = array( 'Inkscape' => '"$path/Inkscape/inkscape" -z -w $width -f $input -e $output', );
On some Linux installations (e.g. opensuse 10.3) rsvg is renamed: opensuse 10.3 for example:
$wgSVGConverters = array( 'rsvg' => '/usr/bin/rsvg-convert -w $width -h $height -o $output $input'); $wgSVGConverter = "rsvg" ;

