此代码将图像保存为假想图像,但不是将图像显示为图片,而是显示图片内部的一行文本。帮帮我?php gd脚本不能正确输出图片
<?php
imagecopymerge($image, $watermark, $dest_x, $dest_y, 0, 0, $watermark_width, $watermark_height, $opacity);
// print image to screen
header("content-type: image/jpeg");
imagejpeg($image, "modified-images/".$codigo2."_modified_picture_status_".$status.".jpg");
imagedestroy($image);
imagedestroy($watermark);
?>
你只是解决了把我半天的问题。谢谢!! – t0mgs 2011-01-26 17:51:10