Hi there !
Today I tried get Image Magick work on my hosted webspace.
So far no problem. There is the newest version installed, I can access the files via exec() and the give me many error messages back..... 🙁
I wasted the whole afternoon, but I couldn't find the problem.
This is what the script does (it's this one: PHP-Builder article ):
<?php
$newsize = "120x120";
$cmd = "/usr/bin/mogrify -resize $newsize /www/htdocs/v032924/banner.jpg 2>&1";
exec($cmd, $exec_output, $exec_retval);
if($exec_retval > 0)
{
print "ERROR: exec() error: $exec_output[0]";
}
else
{
print "Image was resized from " . $image_width . "x" .
$image_height . " to $newsize";
}
?>
Every time i run this I get this error:
ERROR: exec() error: mogrify: Missing an image file name.
I tried many things and other scripts and also looked for solutions in ImageMagick related mailing lists, but no results.
Thanks for your help,
Jan 🙂