How to create Image with custom text in php?

淺唱寂寞╮ 提交于 2019-12-11 01:48:45

问题


I am looking to create a Product customization tool in PHP. This tool will allow the user to create his own Customization to a predefined Mobile cover. I already have a Mobile cover image and I am looking to allow a user to write 3 characters which will be written in a circle called as monogram with a background color.

I am not sure how to proceed ahead with it. I am looking to dynamically create image that is placed on the Mobile cover in such way that it looks its part.

here is the link to a sample image which would be generated

http://d13eowy7ljcd3.cloudfront.net/images/ark.png

I am looking for way on how to approach it and which php image handling libraries should I make use of.


回答1:


I think you should use ImageMagick: http://php.net/manual/en/book.imagick.php This need that imagemagick was installed on the system, If you do not have a dedicated server you could try with GD http://es1.php.net/manual/en/book.image.php, but I think that imagemagick is more powerfull.



来源:https://stackoverflow.com/questions/17964327/how-to-create-image-with-custom-text-in-php

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!