不显示logo
<?php
$url='test.jpg';
$content=file_get_contents($url);
$filename='tmp.jpg';
file_put_contents($filename,$content);
$url='test1.jpg';
file_put_contents('logo.png',file_get_contents($url));
$im = imagecreatefromjpeg($filename);
$logo = imagecreatefrompng('logo.png');
$size = getimagesize('logo.png');
imagecopy($im, $logo, 15, 15, 0, 0, $size[0], $size[1]);
ob_clean();
header("content-type: image/jpeg");
imagejpeg($im);
logo.png有图像,可是运行结果只有背景图片,,没有水印