Log in

View Full Version : PHP Watermaking?



Recursion
05-11-2006, 01:43 PM
Hello

How do i watermark an image if i upload it through a PHP Uploader?

So I upload something without a watermark, then when i goto the image on my webserver and in the bottom right hand corner it will say BlahBlah.com...

Thanks
Tom

Catzsy (Forum Super Moderator) - Moved to here from website designing. Please try to post in the correct forum.

Tomm
05-11-2006, 02:48 PM
Try learning PHP GD. www.php.net/gd

Dentafrice1
05-11-2006, 02:51 PM
header('Content-type: image/gif');
$im = @imagecreatefromgif('test.gif' - EDIT THIS');
$black = imagecolorallocate($im, 0, 0, 0);
$font = 'YOURFONTHERE.ttf';
$text = "Sitename.com";
imagettftext($im, 6.4, 0, 20, 10, $black, $font, stripslashes($text));
imagegif($im);

uber
05-11-2006, 03:00 PM
There is a watermarking script at gmtt.co.uk
Never used it though

Want to hide these adverts? Register an account for free!