\n";
#print_r($size);
#print "\nwidth - $width
height - $height
\n";
// create an "image resource" big enough to show the text and have some padding.
// set the background color, the text color, and make the background color the
// transparency color.
$image = imagecreate($width, $height);
#imagecolorallocate($image, 0xDD, 0xDD, 0xDD);
#imagefill($image, 0, 0, 0xDDDDDD);
$background = imagecolorallocate($image, 0xFF, 0xFF, 0xFF);
$textcolor = imagecolorallocate($image, 0, 0, 0);
imagecolortransparent($image, $background);
// this line inserts the text into the image, I have noticed that the font sizes
// that GD uses do not really match point sizes. 11 below roughly matches 15 points.
// 90 is the angle the text is rotated at, 5 is the horizontal displacement (right) of the text,
// $height + 2 is the vertical displacement (down) of the text.
imagettftext( $image, 13, 90, 13, $height - 5, $textcolor, $face, $text);
// output the image, destroy the resource (not really needed in this case), and terminate
imagegif($image);
imagedestroy($image);
?>