Question

I installed the software imagemagick on my server "Windows Server 2008".

In cmd it works fine, all commands work.

But when I try to do it in PHP:

$command = "convert fdfdf.jpeg dfdf2.jpeg";
exec($command, $output);

It does not work. I get a blank page and nothing happens,

I have given all the permissions I need to the following:

cmd.exe
whomi.exe
c:\ImageMagick. execute & read to iis_iusrs and everyone.

Safe Mode are off.

What else can I do to make it work?

Was it helpful?

Solution

Try this

$command = "convert fdfdf.jpeg dfdf2.jpeg 2>&1";
exec($command, $output);
var_dump($output);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top