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>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
猜你喜欢
  • 2021-06-16
  • 2022-12-23
  • 2021-10-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案