Don Alexander Eckford's code for Drawing Text on an Image
SLAVE CODE FOLLOWS
<?php // combine two images (i.e., jpg/png) to create a watermark
$name = "eckfordd";
// get the images from files
$image = imagecreatefromjpeg("images/ollie.JPG");
// get sizes
$width = imagesx($image);
$height = imagesy($image);
$font = "fonts/arial.ttf";
// sets the current foreground color to RGB (0, 0, 0), which is BLACK
$black = imagecolorallocate($image, 0, 0, 0);
$white = imagecolorallocate($image, 255, 255, 255);
$red = imagecolorallocate($image, 255, 0, 0);
$green = imagecolorallocate($image, 0, 255, 0);
$blue = imagecolorallocate($image, 0, 0, 255);
$purple = imagecolorallocate($image, 128, 0, 128);
$yellow = imagecolorallocate($image, 255, 255, 0);
$cyan = imagecolorallocate($image, 0, 255, 255);
$magenta = imagecolorallocate($image, 255, 0, 255);
$gray = imagecolorallocate($image, 128, 128, 128);
// combines the image with text using the following specs
// (image, font-size, angle-rotation, x-coord, y-coord, text-color, font-name, text)
imagettftext($image, 20, 0, 10, $height - 4, $white, $font, $name);
//=== display the image
// tell the server that a PNG image follows
header("Content-type: image/png");
// display the image
imagepng($image);
// destroy the image (i.e., release memory)
imagedestroy ($image);
?>