Update $wgSVGConverters default command lines to send both width and height to ImageM...
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 16 Dec 2008 21:56:44 +0000 (21:56 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 16 Dec 2008 21:56:44 +0000 (21:56 +0000)
includes/DefaultSettings.php

index bb23559..100c50a 100644 (file)
@@ -2023,7 +2023,7 @@ $wgCustomConvertCommand = false;
 #
 # An external program is required to perform this conversion:
 $wgSVGConverters = array(
-       'ImageMagick' => '$path/convert -background white -geometry $width $input PNG:$output',
+       'ImageMagick' => '$path/convert -background white -thumbnail $widthx$height\! $input PNG:$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',