Manual:$wgSVGConverter

This page is a translated version of the page Manual:$wgSVGConverter and the translation is 48% complete.
SVG: $wgSVGConverter
コンバーターとして使用する、$wgSVGConverters のキーのいずれか。
導入されたバージョン:1.4.0
除去されたバージョン:使用中
許容される値:(文字列)
既定値:'ImageMagick '

詳細

SVG から PNG への変換に使用する、$wgSVGConverters のキーのいずれかです。

既定で利用できる可能性がある値は以下の通りです: 'ImageMagic'、'spdipodi'、'inkscape'、'batik'、'rsvg'、'imgserv'、'ImagickExt'。 その他のコンバーターは、$wgSVGConverters に追加できます。

既定値

$wgSVGConverter = 'ImageMagick';

ImageMagick とローカル ウェブ サーバー

Many users may find it difficult to make ImageMagick Work in local web servers running mediawiki such as XAMPP, WAMP, MAMP, Apache HTTP Sever, AMPPS, EasyPHP, Uniform Server etc. For ImageMagick to work on Windows, these settings must be set properly in LocalSettings.php. You can copy this code directly to LocalSettings.php but remember to comment out by removing #.

## use ImageMagick in mediawiki
$wgUseImageResize = true;
$wgUseImageMagick = true;
## Enable applicable one for windows
# If you have installed ImageMagick in windows comment out below
#$wgImageMagickConvertCommand = "C:/Program Files/ImageMagick-6.9.3-Q16/convert";
# If you have portable version of ImageMagick. Show the path properly & comment out below line. In this case Portable ImageMagick was copied to mediawiki/extra folder. So path is shown this way.
#$wgImageMagickConvertCommand = "$IP/extra/convert";
## Enable this for Linux
#$wgImageMagickConvertCommand = "/usr/bin/convert";

# For SVG image support
$wgFileExtensions[] = 'svg';
$wgAllowTitlesInSVG = true;
$wgSVGConverter = 'ImageMagick';
$wgSVGConverters = [
    'ImageMagick' => '"C:/Program Files/ImageMagick-6.9.3-Q16/convert" -background white -geometry $width $input $output',
];

関連項目