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.wikimedia.org%2Fwikipedia%2Fcommons%2F1%2F15%2FSvg.svg 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 -- -===================================================- . . Aurélio A. Heckert [ GNU/Linux ] / \ http://www.aurium.cjb.net ((__-^^-,-^^-__)) `-_---" "---_-´ Web Colaborativa: `--|o` ´o|--´ http://www.TWiki.org \ ' / Projeto Software Livre - Bahia: ): :( http://psl-ba.softwarelivre.org (o_o) Coop. de Tecnologias Livres: "-" http://www.colibre.com.br ------------------------------------------------- GNU/Linux User #312507 http://counter.li.org - - - - - - - - - - - - - - - - - - - - - - - - - ( ( ( http://www.midiaindependente.org ) ) ) -===================================================- "Se conhecimento é poder, que país governado por industriais dará a verdadeira educação? Cuidado com o feedback da miséria!" Tet Ramon "Eu temo pela minha espécie quando penso que Deus é justo." Thomas Jefferson
participants (1)
-
Aurélio A. Heckert