Page 1 of 1

newbie command line problem

Posted: 2007-08-30T17:49:40-07:00
by erdan
I am having problems creating a photo annotation and doing many operations. Is this syntax or a software install compatibility issue...

System is a cpanel Linux server (VPS)
PHP ver 4.47
Imagemagick ? 5.5ish
I have root SSH access...


When I run

Code: Select all

/usr/bin/convert -quality 100 -antialias -resize x320 /home/mydomain/public_html/files/test.jpg /home/mydomain/public_html/files/test2.jpg
I get no errors

When I run the following I get an error

Code: Select all

root@vps [/home/mydomain/public_html/files]# /usr/bin/convert /home/mydomain/public_html/files/test.jpg  -fill yellow -pointsize 25 -draw 'text 10,10 "TEST" ' /home/mydomain/public_html/files/test2.jpg
sh: line 1: gs: command not found
sh: line 1: gs: command not found
convert: Postscript delegate failed `/tmp/magick-XXxKu8ud'.
sh: line 1: gs: command not found
sh: line 1: gs: command not found
convert: Postscript delegate failed `/tmp/magick-XXxyDYLC'.
root@vps [/home/mydomain/public_html/files]# 
THANKS FOR ANY HELP!!!

Re: newbie command line problem

Posted: 2007-09-04T18:42:19-07:00
by anthony
PHP will not show the error output form command unless you redirect the errors to the output display.

try adding 2>&1 into the PHP convert comand.

The command line run seems to indicate that ghostscript (used to convert postscript and PDF format images) is not available on the current 'PATH'. eithe rit is not installed, or it is installed in a unusual place like a application specific directory in /opt or /usr/local

Re: newbie command line problem

Posted: 2007-09-05T06:00:02-07:00
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