By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,619 Members | 1,861 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,619 IT Pros & Developers. It's quick & easy.

how to embed logo in to photo

yyuuvvii
P: 5
Hey,all
i want to embed my website’s logo into the photos uploaded through my website using php so that the photographs cann’t be used by another websites
thanks in advance
Feb 5 '10 #1
Share this Question
Share on Google+
1 Reply


Atli
Expert 5K+
P: 5,058
Hey.

To do that, you could use the GD functions, or if you prefer, the ImageMagick extension.

Assuming you want to use the GD functions, you would simply load both the images using the imagegetfrom* functions, merge them using the imagecopymerge function (the watermark resized and re-located), and then save/output the new image using the image* function.

The examples in the manual should give you a pretty good idea of how to assemble these functions into what you need.

If you run into problems, post you code here and we will try to help. Also post any error messages you get.
Feb 5 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.