图片显示不正常 求破
<?php
$src="001.jpg";
$info=getimagesize($src);
$type= image_type_to_extension($info[2],false);
$fun= "imagecreatefrom".$type;
$image = $fun($src);
$image_thumb = imagecreatetruecolor(300,200);
imagecopyresampled($image_thumb,$image,0,0,0,0,80,80,$info[0],$info[1]);
imagedestroy($image);
header("Content-type:".$info['mime']);
$funs = "image{$type}";
$funs($image_thumb);
$funs($image_thumb,"thumb_image.".$type);
imagedestroy($image_thumb);
?>

这个问题怎么处理 求解答