Hi all,
I'm going a little nuts here..
For days I've been trying to get imagemagick to work from php with no success.
This is the simple script:
$convert = "/usr/bin/convert -resize 350x150 screen.png screen2.png";
shell_exec($convert);
and it just won't work.
I echoed $convert and pasted that code into the shell - works without a problem.
I tested whether shell_exec would work and it does, as this little script produces an output:
$res = shell_exec("echo hi");
echo $res;
Apart from shell_exec, I've tried exec() and passthruh, with no success.
Does anyone have any idea why it won't work (no php is not in safe mode)?
Is there any way to actually return and output any error messages to php so that I might get an idea what's wrong that way? I played a bit with passthruh, but I'm not a unix person.
Thank you so much for your help.
Cheers,
Chemoul