PHP GD库中输出图像乱码问题

header('content-type:image/gif');
$im= imagecreate(200,600);
$where = imagecolorallocate($im,225,66,159);
imagegif($im);

在用GD库创建图像后 输出之后要指定是以哪一种的格式进行输出,否则会出现乱码
posted @ 2017-04-28 15:59  青柚  阅读(1047)  评论(0编辑  收藏  举报