友達複数の透過PNG画像から1つのpng画像を生成したいのですが、最後の画像しか生成できないのが問題です
両方の画像を結合することはできません。
私のコードは以下のとおりです
$x = 363;
$y = 267;
$im_dest = imagecreatetruecolor ($x, $y);
imagealphablending($im_dest, false);
$im = imagecreatefrompng('2.png');
$im1 = imagecreatefrompng('1.png');
imagecopy($im_dest, $im1, 0, 0, 0, 0, $x, $y);
imagecopy($im_dest, $im, 0, 0, 0, 0, $x, $y);
imagesavealpha($im_dest, true);
imagepng($im_dest, 'small_redfade.png');
これらは、単一の画像に参加するために使用している画像です