I have also seen that you probably need the path to ImageMagick in the line:
Code: Select all
exec("convert -size 500x180" . $_FILES['imgfile']['tmp_name'] ." -thumbnail 250x90 ".$_FILES['imgfile']['name']) or die('error');
Code: Select all
exec("/usr/local/bin/convert -size 500x180" . $_FILES['imgfile']['tmp_name'] ." -thumbnail 250x90 ".$_FILES['imgfile']['name']) or die('error');
Also this line is not a php line so you would need to lose all the ". ?
Code: Select all
exec("/usr/local/bin/convert -size 500x180 $_FILES['imgfile']['tmp_name'] -thumbnail 250x90 $_FILES['imgfile']['name']") or die('error');
I may be wrong about some of this but I have not used ImageMagick for a few years now !
Anthony