I just installed ImageMagick on my development machine (OS X 10.4.7, Apache 1.3, PHP 4). I am trying to use exec() to call it. I have created a command via PHP:
$cmd = "/usr/local/ImageMagick-6.3.0/bin/convert /Library/WebServer/Documents/one.jpg -resize 250x /Library/WebServer/Documents/photos/two.jpg"
exec($cmd, $output, $retVal);
First off, as I'm sure you've guessed, it's not working. At all. I know ImageMagick is correctly installed because when I run the command via the console, it works perfectly. The "photos" directory is chmod'ed to 777. The paths are correct. I have tested a simple "ls -l ." as the command, that outputs everything just fine.
Is there somehing I'm not doing right? Someting I need to disable or enable? I've gotten this exact code to work on a different server (GoDaddy of all places) so I'm quite certain it's not the code itself. Irregardless, it's annoying. Any help will be appreciated.