如何使用PHP和Imagick将网格添加到图像

时间:2019-07-15 02:56:28

标签: php imagick

如何使用PHP和Imagick将网格添加到图像? 我想定期给花照相 并将其转换为类似于下图的图像:

image

以下代码在使用ImageMagick(IM)时效果很好。
但是,我希望能够使用PHP执行相同的操作 和Imagick在网站上。

convert ^
  in.png ^
  -background White ^
  -crop 0x6 -splice 0x6 -append -chop 0x6 ^
  -crop 6x0 -splice 6x0 +append -chop 6x0 ^
  out.png

此代码位于: https://imagemagick.org/discourse-server/viewtopic.php?t=27238

下一页上的代码可能与我需要的代码接近? Composite multiple images together onto one image with ImageMagick

谢谢, 比尔

0 个答案:

没有答案