Home  >  Article  >  Backend Development  >  imagemagick叠图解决方案

imagemagick叠图解决方案

WBOY
WBOYOriginal
2016-06-13 11:51:491163browse

imagemagick叠图
请问怎么用imagemagick库实现GD库中imagecopyresampled的功能?把两张图叠在一起,看英文文档快看吐了,求捷径,哪怕告诉一个方法名我自己去研究,多谢!
------解决方案--------------------
直接用imagick。

<br />$cmd = sprintf("composite -gravity %s -geometry %s -dissolve %s '%s' %s %s", 'SouthEast', '+10+10', 100, '16.png', '05.png', '05.png');  <br /><br />exec($cmd); <br />
 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn