外観は:http://phpimagick.com/Imagick/mergeImageLayers
私はこのようなものは、私が出回っ、このいずれかを試してみました
function mergeImages()
{
// you should find the correct layerMethodType by yourself,
// here the available ones: http://php.net/manual/en/imagick.constants.php
$layerMethodType = imagick::LAYERMETHOD_COMPARECLEAR;
$img1 = new \Imagick(realpath("bg.png"));
$img2 = new \Imagick(realpath("play.png"));
$img1->addImage($img2);
$img1->setImageFormat('png');
$result = $img1->mergeImageLayers($layerMethodType);
header("Content-Type: image/png");
echo $result->getImageBlob();
}
Thxを動作するはずだと思います。出力/画像もなくエラーもありません。このコードを私の側に追加すると、私は結果を見るべきでしょうか? – Jakob
これは現在稼働しています – Jakob