文件目录 访问index.php
<?php
$bigImgPath = "image/c.jpg";
$qCodePath = "image/d.jpg";
$bigImg = imagecreatefromstring(file_get_contents($bigImgPath));
$qCodeImg = imagecreatefromstring(file_get_contents($qCodePath));
list($qCodeWidth, $qCodeHight, $qCodeType) = getimagesize($qCodePath);
imagecopymerge($bigImg, $qCodeImg, 100,100, 100, 100, $qCodeWidth, $qCodeHight, 100);
list($bigWidth, $bigHight, $bigType) = getimagesize($bigImgPath);
imagejpeg($bigImg,'image/555.jpg');