Hi Devels!
I'm trying to re-make an svg2png service on the web using the Inkscape 0.45, but it is not working.
I'm using the inkscape by the command line in a server without X with this command: inkscape $svg -z -h 160 -e $png
If i connect by SSH i can use this command and works!
But if my PHP code try this i recive this error: (inkscape:3946): Gtk-CRITICAL **: gtk_main_quit: assertion `main_loops != NULL' failed
What is missing? If I run the PHP by the commad line: php index.php 'http://upload.wikimedia.org/wikipedia/commons/1/15/Svg.svg' it works!
What is diferent on the apache? Whay the GTK gives error?
Se that on debug way: http://www.colivre.coop.br/svg2png/?debug=1&svg=http%3A%2F%2Fupload.wiki...
The ENV by apache is only "SHLVL=2" And on the SSH is only "LESSCLOSE=/usr/bin/lesspipe %s %s"
You can see the PHP code hire (if need...): http://www.colivre.coop.br/svg2png/index.phps
It works with Inkscape 0.44
I thing there is a bug on the 0.45, because it is trying to do somenting with the GTK main_loops, but i used the "-z" (without gui)
Thanks, Aurium
participants (1)
-
Aurélio A. Heckert