function resizeHoang($file, $width, $height, $file_name, $des) { require_once "class.resize.php"; $re = new resizes(); $re->load($file); $re->resize($width, $height); $re->save($des . $file_name); }
function resizeHoang($file, $width, $height, $file_name, $des, $tile = 1) { require_once "lib/class.resize.php"; $re = new resizes(); $re->load($file); $re->resize($width, $height, $tile); // giu kich thuoc that cua hinh $re->save($des . $file_name); }
function cropWidthHalf($file, $file_name, $des) { require_once "lib/class.resize.php"; $re = new resizes(); $re->load($file); $width = $re->getWidth(); $width = round($width / 2); crop5x3($file, $file_name, $des, $width); }
function resizeWidth($file, $width, $file_name, $des) { require_once "lib/class.resize.php"; $re = new resizes(); $re->load($file); $re->resizeToWidth($width); // giu kich thuoc that cua hinh $re->save($des . $file_name); $fileNew = $des . $file_name; crop400($fileNew, $file_name, $des); }