标签:
$src = ‘4.jpg‘;
list($width,$height) = getimagesize($src);
$im = imagecreatefromjpeg($src);
$panl = imagecreatetruecolor(100, 100);
imagecopyresampled($panl,$im,0,0,0,0,100,100,$width,$height);
imagedestroy($im);
header("content-type:image/jpg");
imagejpeg($panl);
imagedestroy($panl);
标签:
原文地址:http://www.cnblogs.com/liuwanqiu/p/5741933.html