[Toolserver-l] what's the best way to convert SVGs to PNGs on the toolserver?
Ryan Kaldari
kaldari at gmail.com
Tue Feb 16 23:46:11 UTC 2010
For some reason I can't get the command to work properly from PHP, although
it works fine from the command line. I tried to execute the following from
PHP on nightshade:
$command = "rsvg newmap.svg newmap.png";
$makemap = system($command, $retval);
if ($retval) echo "PNG creation error.";
This creates a file called newmap.png, but the file is always 0 bytes, and
no error is returned. Running the same command from the command line works
perfectly. Any idea what's wrong? Could this have anything to do with the
rsvg security patch? Do I need to pass the file differently within a script?
Ryan Kaldari
On Mon, Feb 15, 2010 at 6:21 PM, Christian Thiele <apper at apper.de> wrote:
> Hi,
>
> Am 16.02.2010, 00:53 Uhr, schrieb Ryan Kaldari <kaldari at gmail.com>:
>
> > Has anyone else dealt with this problem on the toolserver? I've heard of
> > a couple other possible solutions:
>
> I'm using rsvg on the toolserver for four years now and it produces good
> results. You could simply run it "rsvg source.svg dest.png". I don't know
> about security problems, but as I understood, you create the SVGs for your
> own, so this shouldn't be a problem.
>
> Sincerelly,
> Christian Thiele / apper
>
> _______________________________________________
> Toolserver-l mailing list (Toolserver-l at lists.wikimedia.org)
> https://lists.wikimedia.org/mailman/listinfo/toolserver-l
> Posting guidelines for this list:
> https://wiki.toolserver.org/view/Mailing_list_etiquette
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wikimedia.org/pipermail/toolserver-l/attachments/20100216/92f280c5/attachment.htm
More information about the Toolserver-l
mailing list