Creating image with text and another image

122 Views Asked by At

So i have a script that is printing text to an image using imagecreatefrompng function and a lot more but that is not the point. How could i print an image on the created image? I can print text to it but image not.

1

There are 1 best solutions below

2
On

I don't know what you're doing, but may be better to do this client-side rather than with PHP.

There's ImageMagick for PHP that you can check out here http://www.imagemagick.org

PHP's native functions do not offer much in the way of this -- but do check out http://us.php.net/manual/en/function.imagecopymerge.php if you're not sold with either creating multiple layers with alpha channels in PS and then having php select them, or just client JS or something.