« MediaWiki/SVG » : différence entre les versions
Aller à la navigation
Aller à la recherche
(Page créée avec « {{Sommaire}} Pour que les images au format SVG soient afficher sous forme d'image PNG, il faut un convertisseur : == Prérequis == Outil ImageMagick : * source : https:/… ») |
mAucun résumé des modifications |
||
| Ligne 6 : | Ligne 6 : | ||
Outil ImageMagick : | Outil ImageMagick : | ||
* source : https://imagemagick.org/script/download.php#windows | * source : https://imagemagick.org/script/download.php#windows | ||
* destination : <code>D:\phpwamp\outil\ImageMagick\< | * destination : <code>D:\phpwamp\outil\ImageMagick\</code> | ||
== Paramétrage LocalSettings == | == Paramétrage LocalSettings == | ||
Version du 18 novembre 2021 à 15:33
Pour que les images au format SVG soient afficher sous forme d'image PNG, il faut un convertisseur :
Prérequis
Outil ImageMagick :
- source : https://imagemagick.org/script/download.php#windows
- destination :
D:\phpwamp\outil\ImageMagick\
Paramétrage LocalSettings
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "D:\glgwamp\outil\ImageMagick\convert.exe";
# SVG, gestion des fichiers au format SVG
## utiliser ImageMagick dans mediawiki
$wgUseImageResize = true;
$wgUseImageMagick = true;
# For SVG image support
$wgFileExtensions[] = 'svg';
$wgAllowTitlesInSVG = true;
$wgSVGConverter = 'ImageMagick';
$wgSVGConverters = [
'ImageMagick' => '"D:\phpwamp\outil\ImageMagick\convert.exe" -background white -geometry $width $input $output',
];