Hello.
I recently installed a mediawiki and am trying to set it up to render svg images. My linux host has the GD Library version 2.0.34. The documentation at the wiki says to enable $wgUseImageMagickhttp://www.mediawiki.org/wiki/Manual:%24wgUseImageMagickto enable ImageMagick but what about the other libraries? What do I have to do to enable MediaWiki to display thumbnails of svg images?
thanks in advance, Jubei
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
KATZAKIS Nicholas wrote:
I recently installed a mediawiki and am trying to set it up to render svg images. My linux host has the GD Library version 2.0.34. The documentation at the wiki says to enable $wgUseImageMagickhttp://www.mediawiki.org/wiki/Manual:%24wgUseImageMagickto enable ImageMagick but what about the other libraries? What do I have to do to enable MediaWiki to display thumbnails of svg images?
Currently, to support SVG images properly you need some sort of software to rasterize them; that's not built in to the GD library.
The global config variable $wgSVGConverters includes a default set of possible rasterizers; of which the default select (in $wgSVGConverter) is ImageMagick's "convert" command.
ImageMagick isn't the best SVG renderer, but it's perhaps more likely to be installed than others.
For several pages of documentation about SVG setup, see the wiki:
http://www.mediawiki.org/wiki/SVG
- -- brion vibber (brion @ wikimedia.org)
2008/5/5 Brion Vibber brion@wikimedia.org:
ImageMagick isn't the best SVG renderer, but it's perhaps more likely to be installed than others.
ImageMagick is about the worst in my experience!
For several pages of documentation about SVG setup, see the wiki: http://www.mediawiki.org/wiki/SVG
* Unix/Linux: if your distro supports it, use rsvg. * Unix/Linux: if your distro doesn't include rsvg, Inkscape or Sodipodi, poke your eyes out with a spork rather than try to install one of those three by hand. * Windows: use Inkscape, which comes as a nice standalone package.
- d.
Everyone thank you for the help. I have asked my host to install one of these libraries!
Nick
On Tue, May 13, 2008 at 12:57 AM, David Gerard dgerard@gmail.com wrote:
2008/5/5 Brion Vibber brion@wikimedia.org:
ImageMagick isn't the best SVG renderer, but it's perhaps more likely
to
be installed than others.
ImageMagick is about the worst in my experience!
For several pages of documentation about SVG setup, see the wiki: http://www.mediawiki.org/wiki/SVG
- Unix/Linux: if your distro supports it, use rsvg.
- Unix/Linux: if your distro doesn't include rsvg, Inkscape or
Sodipodi, poke your eyes out with a spork rather than try to install one of those three by hand.
- Windows: use Inkscape, which comes as a nice standalone package.
- d.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Here's what my host came back with:
*We're able to install on your server the following modules: Gnome2::Rsvg Image::LibRSVG XML::LibRSVG Could you tell me what is the exact module you need and we'll install it for you? * David could you point me to a webpage where I can read more about rsvg so that I can tell my hosting company what to install?
thanks in advance, Nick
On Tue, May 13, 2008 at 12:57 AM, David Gerard dgerard@gmail.com wrote:
2008/5/5 Brion Vibber brion@wikimedia.org:
ImageMagick isn't the best SVG renderer, but it's perhaps more likely
to
be installed than others.
ImageMagick is about the worst in my experience!
For several pages of documentation about SVG setup, see the wiki: http://www.mediawiki.org/wiki/SVG
- Unix/Linux: if your distro supports it, use rsvg.
- Unix/Linux: if your distro doesn't include rsvg, Inkscape or
Sodipodi, poke your eyes out with a spork rather than try to install one of those three by hand.
- Windows: use Inkscape, which comes as a nice standalone package.
- d.
2008/5/13 KATZAKIS Nicholas nkatzakis@gmail.com:
Here's what my host came back with: *We're able to install on your server the following modules: Gnome2::Rsvg Image::LibRSVG XML::LibRSVG Could you tell me what is the exact module you need and we'll install it for you?
David could you point me to a webpage where I can read more about rsvg so that I can tell my hosting company what to install?
Um ... well, those Perl modules would require rsvg to be installed for them to have something to talk to. So *presumably* if they install one, they will install with it an rsvg binary that MediaWiki can call.
If you asked for rsvg and they replied with a list of Perl modules, it's not clear they understand that ...
Beyond that, I'm not sure precisely what to advise!
Possibly you could clarify with them what you're really asking for, i.e. a binary called rsvg that can be run from a PHP script (MediaWiki).
- d.
mediawiki-l@lists.wikimedia.org