problem with graphicsMagick and Apache
| From: | Toke Herkild | Date: | Wed, 07 Oct 2009 12:42:37 +0000 |
| Subject: | problem with graphicsMagick and Apache | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-298725@lists.php.net to get a copy of this message | ||
Hi All,
Might not be the correct place, but I hope someone in here can help me with this problem.
running this from command line will execute correctly:
gm convert source -resize 600x800 dest
but running the same from within a script using exec() causes the threads to hang, restarting apache with graceful, causes the threads to be finished and the images are stored correctly.
code :
exec('gm convert '.$source.' -resize 600x800 '.$dest);
And I did try with shell_exec() also, no difference.
Can anyone give me a pointer as to why this happens ?
Regards,
Toke Herkild