Forum Moderators: coopster

Message Too Old, No Replies

Water Mark?

         

bobnew32

10:08 pm on Nov 7, 2003 (gmt 0)

10+ Year Member



I need to make a script that will echo out the contents of a image that is stored in a blob in a mysql database. I can do that all fine and dandy, but I want a watermark to appear on the image as well. A small watermark with my site name on it. This will not be css covering it, it will be altered to have it on it (the picture will be altered out like image.php?id=1 ) so getting away from the watermark would be impossible.

I've searched all over and can't find it, please help.

Robber

10:27 pm on Nov 7, 2003 (gmt 0)

10+ Year Member



Its not something I've done but I would think you could do it using GD.

I reckon you should be able to read the blob to create an image object and then use the GD methods to "draw" the watermark over the top of it.

Sounds simple when you put it like that!

bobnew32

10:28 pm on Nov 7, 2003 (gmt 0)

10+ Year Member



I'm sorry to say, but what is GD and how would I do that? If you have any useful links, i'd surely love to see them ^^

Robber

10:30 pm on Nov 7, 2003 (gmt 0)

10+ Year Member



GD is basically a library of image functions, check out [uk.php.net...]

bcolflesh

10:43 pm on Nov 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



DevBox.net tutorial here:

www.devbox.net/articles/viewarticle.php?aid=9