我使用以下代码来创建拍立得效果,但是没有透明效果真的很分散。
我得到的结果类似于http://photoapp.biz/polaroid/test.php。
原始图片为http://photoapp.biz/polaroid/wood.png。
问题出在哪里?这几乎发生在我尝试的所有10张图片中。
例如:
<?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张图片中。
例如:
![输入图片描述](https://istack.dev59.com/pJtLG.webp)