corz.org uses cookies to remember that you've seen this notice explaining that corz.org uses cookies, okay!
<?php
// 'watermark' in the upper left of an image
// an example used for a site question..
$my_text = 'watermark';
// open image and lay white text on it..
$img = imagecreatefromjpeg ('example.jpg');
$white = imagecolorallocate($img, 255, 255, 255); // white
imagestring($img, 4, 6, 3, $my_text, $white); // size 4 built-in font
// send the image
header("Content-type: image/jpeg");
imagejpeg($img);
imagedestroy($img);
?>