User:WonRyong/SVG setting

Solution

 * Install ImageMagick
 * Edit LocalSettings.php

$wgEnableUploads      = true; $wgUseImageResize     = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "C:/Program Files/ImageMagick-6.3.2-Q16/convert";
 * 1) $wgImageMagickConvertCommand = "/usr/bin/convert";

Windows XP
mw:Manual:%24wgSVGConverters

Default is following. this is for unix, linux

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', );

But, in Windows XP, add " " as following

$wgSVGConverters = array(   'Inkscape' => '"$path/Inkscape/inkscape" -z -w $width -f $input -e $output', );

I set LocalSettings.php as following. I use Windows XP.

$wgSVGConverters = array(   'ImageMagick' => '"C:/Program Files/ImageMagick-6.3.2-Q16/convert" -background white -geometry $width $input $output',  );

Note: C:\ (X), C:/ (O)

Success
Most important is "insert position."

If you add command lines at any line, it will error.

Most important is "insert position."

I succeed!!

Add command lienes JUST AFTER $wgScriptPath = "/mediawiki"; as floowing

$wgScriptPath      = "/mediawiki";
 * 1) The URL base path to the directory containing the wiki;
 * 2) defaults for all runtime URL paths are based off of this.

$wgFileExtensions[] = 'svg'; $wgAllowTitlesInSVG = true;

$wgSVGConverters = array(   'ImageMagick' => '"C:/Program Files/ImageMagick-6.3.2-Q16/convert" -background white -geometry $width $input $output',  );

$wgSVGConverter = 'ImageMagick';


 * 1) For more information on customizing the URLs please see:
 * 2) http://www.mediawiki.org/wiki/Manual:Short_URL

$wgEnableEmail     = true; $wgEnableUserEmail = true;

I think, following setting is for linux, unix

$wgScriptPath      = "/mediawiki";
 * 1) The URL base path to the directory containing the wiki;
 * 2) defaults for all runtime URL paths are based off of this.

$wgFileExtensions[] = 'svg'; $wgAllowTitlesInSVG = true;

$wgSVGConverter = 'ImageMagick';


 * 1) For more information on customizing the URLs please see:
 * 2) http://www.mediawiki.org/wiki/Manual:Short_URL

$wgEnableEmail     = true; $wgEnableUserEmail = true;