Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Dec 2005
    Posts
    24
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Text watermark on Image reg.

    Im trying to use text watermark on images using GD functions.

    I went through a couple of watermarking threads here, but those were mostly like watermarking images on another image. And only one instance of watermarking is done.

    I'd like to use text for watermarking. I can set the size & transparency of the text & write to the image directly. Im thinking of using imagettftext function. But this doesnt have transparency as parameter. Any other function would do that? Or is it better to convert text to image & then watermark it using transparency?

    Another thing is, I would like to write the text many times on the image, not just once, so that entire image is watermarked. Is there any standard way of doing this?

    Or i should do it using a function that starts from pixel 1 of the image & writes the text till the end, then goes to next line and so on? Im doing this for the first time.. any suggestions would be of help!
    Last edited by smooth; 02-17-2006 at 08:59 PM.

  • #2
    Senior Coder
    Join Date
    Mar 2003
    Location
    Atlanta
    Posts
    1,037
    Thanks
    14
    Thanked 30 Times in 28 Posts
    Not sure of how often you plan to manipulate images.....but you should also try using Imagemagick in addition to the GD library.
    I think this articule has exactly what you want. Look at the section....."watermarking with text"
    http://www.cit.gu.edu.au/~anthony/gr...ng/#wmark_text
    and imagemagick is here
    www.imagemagick.org
    Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.

  • #3
    New Coder
    Join Date
    Dec 2005
    Posts
    24
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Hi, Ralph.. thanks a lot. My server supports imagemagick n i've been using it. But i never knew it was that easy to watermark using it! Thanks again!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •