tags:

views:

105

answers:

3

How to include an image inside another image in PHP? I want to do it like in twitterbackgrounds.com personalized backgroud. there is one main image and we can upload four personal images after that it will show as watermark of the main image.

A: 

phpThumb has a watermark feature, if you're looking for something full-featured and ready-made..

Dan Heberden
+1  A: 

Well, there are several possibilies to do that. The one that pops into my mind is to use a php page where you can upload all files needed for this. After submission you can use imagemagick to create the new image with watermarks and display it on another webpage or store it to a database.

Here is a good tutorial on how to use imagemagick to create the watermarks in another image.

you may use imagemagick as commandline command from php or use it as a server application on an own server

Thariama
A: 

I never used GD by myself, but look at the example in the manual, wich is about "Using imagecopymerge() to create a translucent watermark".

mkluwe