how to embed logo in to photo

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yyuuvvii
    New Member
    • Feb 2010
    • 5

    how to embed logo in to photo

    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
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    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.

    Comment

    Working...