【发布时间】:2012-09-19 07:35:12
【问题描述】:
我使用下面的代码来创建宝丽来效果,但是它真的很分散注意力,周围没有任何透明效果。
<?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 张图片中。
例子:
【问题讨论】:
-
我试过安装几个php版本,都是同样的问题
-
哪里应该是透明的?
-
周围不能有黑白相间的颜色
标签: php imagemagick