Server errors when running certain convert commands
Posted: 2007-09-03T19:51:48-07:00
I am still having problems trying to annotate pics and run certain photo manipulations using php to execute a shell command. I was able to find the apache error logs and this is what is showing up:
This is the command which runs without error when pasted directly into an ssh shell window, but dies when executed from a php script. The same php script executes simple convert resizing without any problems. It appears that when it tries to perform certain tasks it dies...
ERROR CODES
This is the command which runs without error when pasted directly into an ssh shell window, but dies when executed from a php script. The same php script executes simple convert resizing without any problems. It appears that when it tries to perform certain tasks it dies...
Code: Select all
/usr/bin/convert /home/websites/public_html/files/0709032247_eye.jpg -gravity south -stroke '#000C' -strokewidth 2 -annotate +0+5 'message here' -stroke none -fill white -annotate +0+5 '' /home/websites/public_html/files/anno-0709032247_eye.jpg
Code: Select all
[/home/websites/public_html]# tail -f /etc/httpd/logs/error_log
convert: option requires an argument `-gravity'.
sh: line 2: -stroke: command not found
sh: line 3: -stroke: command not found
sh: line 4: /home/websites/public_html/files/anno-0709032247_eye.jpg: No such file or directory
[Mon Sep 3 22:47:46 2007] [error] [client 71.206.29.125] File does not exist: /home/websites/public_html/files/anno-0709032247_eye.jpg
[Mon Sep 3 22:47:46 2007] [error] [client 71.206.29.125] File does not exist: /home/websites/public_html/404.shtml
convert: Postscript delegate failed `/tmp/magick-XXnoswH4'.
convert: Postscript delegate failed `/tmp/magick-XXYjFULk'.
convert: Postscript delegate failed `/tmp/magick-XXrUbaFr'.
convert: Postscript delegate failed `/tmp/magick-XX1AvzcY'.
convert: Postscript delegate failed `/tmp/magick-XXh5wRmP'.
convert: Postscript delegate failed `/tmp/magick-XXlp7EOL'.