Home  >  Article  >  Backend Development  >  php 多张图片合并成一张,如何避免

php 多张图片合并成一张,如何避免

WBOY
WBOYOriginal
2016-06-13 13:47:531303browse

php 多张图片合并成一张,如何处理?
php 多张图片合并成一张,如何处理?谢谢!

------解决方案--------------------
用imagemagick
------解决方案--------------------
Yeah it's reasonably simple.

You just use imagecopy() or imagecopyresized() to copy an image (or part of an image) onto another one.

If you are working with lots of big images then it can be very memory intensive, so you may need to increase PHP's memory_limit with ini_set() to at least 64MB.

http://forums.devshed.com/php-development-5/how-do-i-merge-various-images-into-one-using-gd-502604.html

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