Can we watermark an image without using another image?

Discussion in 'PHP' started by Jenco, Apr 25, 2010.

  1. #1
    Basically i want to wwztermark image according to the name of my users, but am not being able to do it, all that i have is a script which has a png image which can be used to watermark other images..

    Is there any way to watermark images according to a name .. and not using an image?
     
    Jenco, Apr 25, 2010 IP
  2. Amator

    Amator Well-Known Member

    Messages:
    1,424
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    165
    #2
    A possibility is to use text to watermark the picture
    After you loaded the picture (that you want to watermark) using PHP, you can write text on it by using the php function imagettftext (http://www.php.net/manual/en/function.imagettftext.php)
    Note that your host need to have the GD library installed.
     
    Amator, Apr 25, 2010 IP
  3. mukeshvariya34

    mukeshvariya34 Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hello,

    As I know, I think, if you remember, we use captcha - that creates images on the fly - so I think, that technique we can use here.
     
    mukeshvariya34, Apr 25, 2010 IP