DEVOPS
DEVOPS

Reputation: 18790

How to include an image inside another image in PHP?

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.

Upvotes: 4

Views: 2430

Answers (3)

mkluwe
mkluwe

Reputation: 4061

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

Upvotes: 2

Thariama
Thariama

Reputation: 50840

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

Upvotes: 1

Dan Heberden
Dan Heberden

Reputation: 11068

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

Upvotes: 1

Related Questions