如何创建图像的在PHP自定义文本? [英] How to create Image with custom text in php?

查看:100
本文介绍了如何创建图像的在PHP自定义文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望创造一个PHP产品定制工具。该工具将允许用户创建自己的定制到predefined手机盖。我已经有一个移动的封面图片,我期待以允许用户编写这将写入称为会标与背景色的圆圈3个字符。

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

我要寻找的方式对如何处理它,而PHP的图像处理库,我应该利用。

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

推荐答案

我认为你应该使用的ImageMagick:的 http://php.net/manual/en/book.imagick.php 这需要一个ImageMagick的安装在系统上,如果你没有一个专用的服务器,你可以尝试用GD的 http://es1.php.net/manual/en/book.image.php ,但我认为ImageMagick的更强大。

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.

这篇关于如何创建图像的在PHP自定义文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆