$uploaddir = " PATH HERE ";
$convertPath = "/usr/local/nf/bin/"; // full path to ImageMagick's convert tool
$sourcepath = $uploaddir . $randName . '.' . $ext;
$destpath = $uploaddir . 'thumbs/' . $randName . '.thumb.' . $ext;
// exec("$convertPath $sourcepath -thumbnail x200 -resize 200x< -resize 50% -gravity center -crop 100x100+0+0 +repage -quality 91 $destpath");
exec("$convertPath $sourcepath -resize 100x100 -quality 87 $destpath");
exec("$convertPath $sourcepath -resize 640x480 -quality 87 $sourcepath");
This was functioning fine on one server. Then the owner of that sever messed up and we had to move the site to Net Firms. For some reason, this script will create one image, but not the thumbnail. I am trying to figure out why. I did not develop the site and I have little experience. The problem may not be in the code, so any ideas appreciated.