View Full Version : Text watermark on Image reg.

02-17-2006, 08:54 PM
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!

02-17-2006, 11:08 PM
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"
and imagemagick is here

02-18-2006, 06:35 PM
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!