php输出图片
//输出图片
list($width, $height, $type, $attr) = getimagesize($pic);
$mime = image_type_to_extension($type, false);
header('Content-Type: image/' . $mime);
$fun = "imagecreatefrom" . $mime;
$image = $fun($pic);
$funcs = "image" . $mime;
$funcs($image);