problem using convert out of a CGI script
Posted: 2008-08-01T12:32:19-07:00
I am on Mac OS X Leopard and I used fink to install imagemagick on my system. I have a local apache/MySQL server running using MAMP.
What I want to do is convert a .ps file into a .png file in a cgi script. I tried the following command:
(I also tried exec and qx btw)
But the script is not able to generate the png file. When i look into the apache_error_log there are these error messages related to the convert command:
the folder I am operating on has chmod 777 and when i use
i get my username.
There is no problem when i go into the terminal and type in the command manually. I just tried everything and was wondering if someone might know a solution. PerlMagick is not a solution though, because my other server has that not installed.
Alex
What I want to do is convert a .ps file into a .png file in a cgi script. I tried the following command:
Code: Select all
system("convert rna.ps rna.png");
But the script is not able to generate the png file. When i look into the apache_error_log there are these error messages related to the convert command:
Code: Select all
convert: no decode delegate for this image format `./gamedata/1148213059206768.ps'.
convert: Postscript delegate failed `./gamedata/1148213059206768.ps'.
convert: missing an image filename `./gamedata/1148213059206768.png'.
Code: Select all
system("whoami");
There is no problem when i go into the terminal and type in the command manually. I just tried everything and was wondering if someone might know a solution. PerlMagick is not a solution though, because my other server has that not installed.
Alex