Jump to content

Manual:$wgSVGConverters

From mediawiki.org
Revision as of 03:53, 21 October 2005 by HappyDog (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:SettingsNotChecked Template:VersionNotChecked

Images: $wgSVGConverters
Scalable Vector Graphics (SVG) may be uploaded as images.
Introduced in version:Unknown
Removed in version:Still in use
Allowed values:Unspecified
Default value:'(see below)

Scalable Vector Graphics (SVG) may be uploaded as images. Since SVG support is not yet standard in browsers, it is necessary to rasterize SVGs to PNG as a fallback format. An external program is required to perform this conversion:

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

}}