コード例 #1
0
ファイル: upload.php プロジェクト: hoangnhonline/hoa-tuoi
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);
}
コード例 #2
0
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);
}
コード例 #3
0
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);
}
コード例 #4
0
ファイル: upload.php プロジェクト: hoangnhonline/hoa-tuoi
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);
}