以下のコードを使用してポラロイド効果を作成しますが、周囲に透明な効果がないと本当に気が散ります。
<?php
/* Create the object */
$image = new Imagick('wood.png');
/* Set the opacity */
$image->polaroidImage(new ImagickDraw(), 25);
/* output the image */
header('Content-type: image/png');
echo $image;
?>
http://photoapp.biz/polaroid/test.phpのような結果が得られます
元画像はhttp://photoapp.biz/polaroid/wood.png
問題は何ですか?これは、私が試した 10 枚のほぼすべての画像で発生します。
例: