public static function resizeThumbnailImage($thumb_image_name, $image, $width, $height, $start_width, $start_height, $scale)
    {
        $newImageWidth = ceil($width * $scale);
        $newImageHeight = ceil($height * $scale);
        $newImage = imagecreatetruecolor($newImageWidth, $newImageHeight);
        $source = imagecreatefromjpeg($image);
        imagecopyresampled($newImage, $source, 0, 0, $start_width, $start_height, $newImageWidth, $newImageHeight, $width, $height);
        imagejpeg($newImage, $thumb_image_name, 90);
        chmod($thumb_image_name, 0777);

        return $thumb_image_name;
    }
public static function resizeThumbnailImage($thumb_image_name, $image, $width, $height, $start_width, $start_height, $scale)
    {
        $newImageWidth = ceil($width * $scale);
        $newImageHeight = ceil($height * $scale);
        $newImage = imagecreatetruecolor($newImageWidth, $newImageHeight);
        $source = imagecreatefromjpeg($image);
        imagecopyresampled($newImage, $source, 0, 0, $start_width, $start_height, $newImageWidth, $newImageHeight, $width, $height);
        imagejpeg($newImage, $thumb_image_name, 90);
        chmod($thumb_image_name, 0777);

        return $thumb_image_name;
    }
public static function resizeThumbnailImage ( $ thumb_image_name , $ image , $ width , $ height , $ start_width , $ start_height , $ scale ) { $ newImageWidth = ceil ( $ width * $ scale ) ; $ newImageHeight = ceil ( $ height * $ scale ) ; $ newImage = imagecreatetruecolor ( $ newImageWidth , $ newImageHeight ) ; $ source = imagecreatefromjpeg ( $ image ) ; imagecopyresampled ( $ newImage , $ source , 0 , 0 , $ start_width , $ start_height , $ newImageWidth , $ newImageHeight , $ width , $ height ) ; imagejpeg ( $ newImage , $ thumb_image_name , 90 ) ; chmod ( $ thumb_image_name , 0777 ) ; return $ thumb_image_name ; }
Quick resize image function

@param $thumb_image_name
@param $image
@param $width
@param $height
@param $start_width
@param $start_height
@param $scale

@return mixed
Quick resize image function