Server errors when running certain convert commands

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
erdan

Server errors when running certain convert commands

Post by erdan »

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...

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
ERROR CODES

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'.
erdan

Re: Server errors when running certain convert commands

Post by erdan »

It is fixed... I was running an earlier version 6.2 of IM... and I had not recompiled IM after installing GS... So I am assuming recompiling, more than upgrading, fixed the issue.

thanks for your assistance
Post Reply