Дана Wednesday 17 February 2010 20:55:28 Ryan Kaldari написа:
Good idea. The output from rsvg with 2>&1 is
"Error reading SVG:". I've
tried using the full path to the SVG and even setting the permissions on
the file to 777, but I still get the same error. I also tried putting the
command in a shell script and executing the shell script from PHP, but it
gives the same results: a zero byte PNG file.
To me, it seems it can't find the SVG file. Try replacing rsvg with echo to
see what exactly are you giving it; then try replacing it with cat to see if
anything could find the file.