请注意我在这里做错了什么......但我试图将3个pngs合并为一个并且它会抛出错误
警告:imagepng() [function.imagepng]:gd-png错误:第22行的C:\ wamp \ www \ jeep \ public \ test \ png_2.php调色板中没有颜色
$x = 300;
$y = 300;
$final_img = imagecreate($x,$y) or die("Failed in call to
imagecreate()
\n");
$image_1 = imagecreatefrompng('ae.png');
$image_2 = imagecreatefrompng('ad.png');
$image_3 = imagecreatefrompng('ao.png');
imagecopy($image_1, $final_img, 0, 0, 0, 0, $x, $y);
imagecopy($image_2, $final_img, 0, 0, 0, 0, $x, $y);
imagecopy($image_3, $final_img, 0, 0, 0, 0, $x, $y);
imagealphablending($final_img, false);
imagesavealpha($final_img, true);
imagepng($final_img, 'final_img.png');