resize($csize,$csize); $thumb->cropFromCenter($rsize); } else $thumb->resize($rsize,$rsize); if ($refl == 'yes') { $thumb->createReflection(40,35,75,true,'#'.$border); } $thumb->save($p.$mode.'_'.$_POST['file'],$qual); if ($vers == 4) $thumb->destruct(); //if ($mode == 'norm') echo "resizing norm_ OK!"; //if ($mode == 'thumb') echo "resizing thumb_ OK!"; echo 'resize successful'; } ?>