[Toolserver-l] what's the best way to convert SVGs to PNGs on the toolserver?

Aryeh Gregor Simetrical+wikilist at gmail.com
Tue Feb 16 00:06:54 UTC 2010


On Mon, Feb 15, 2010 at 6:53 PM, Ryan Kaldari <kaldari at gmail.com> wrote:
> I'm currently working on some tools to allow web-based creation of various
> types of maps for people that aren't comfortable editing SVG files. These
> tools will allow users to select a base map, choose which territories they
> want to shade in and how to shade them, generate an SVG file, and then push
> it to Commons. I have pretty much everything working except I would like to
> be able to show the user a PNG preview of their map before it is pushed to
> Commons. I tried using ImageMagick, but it gives horrible results. Has
> anyone else dealt with this problem on the toolserver?

Wikimedia uses rsvg, so that would be your best choice -- that way
your PNG has a fairly good chance of actually looking the same as
Wikimedia's rasterization.  rsvg is installed on nightshade, and since
it's installed on willow and wolfsbane I assume it's installed on all
the Solaris servers as well.



More information about the Toolserver-l mailing list