php imagick设置图片圆角的方法

php imagick设置图片圆角的方法

<pre>
header('Content-Type: image/png');

$image = new Imagick('http://static.codeweblog.com/uploads/user/29/58387_100.jpg');
$image->setImageFormat('png');
$image->roundCorners($image->getImageWidth() / 2, $image->getImageHeight() / 2);
echo $image;
$image->destroy();
</pre>

原文地址:https://www.cnblogs.com/newmiracle/p/11856300.html