This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////目标文件,源文件,目标文件坐标,源文件坐标,目标文件宽高,源宽高 | |
imagecopyresampled($new_image, $img_obj, 0, 0, 0, 0, $new_w, $new_h, $img_info[0], $img_info[1]); | |
imagedestroy($img_obj); | |
ob_start(); | |
imagejpeg($new_image, NULL, 95); | |
$out_img = ob_get_contents(); | |
ob_end_clean(); | |
$s = new SaeStorage(); |