问题
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