put this code in a page called pic.php and call it after you have watermarked the image. it will use that image a write text to it
header("Content-type: image/jpeg");
$imgsize = getimagesize("/path_to_photo/photo_name");
$newwidth = $imgsize[0];
$newheight = $imgsize[1];
$image = imagecreatefromjpeg("/path_to_photo/photo_name");
$newimage = imagecreate($newwidth, $newheight);
$white = imagecolorclosesthwb($image, 255,255,255);
imagestring($image, 5, 5, 5, "your_text_here", $white);
imagecopymerge($newimage, $image, 0, 0, 0, 0, $newwidth, $newheight,100);
imagejpeg($newimage);
imagedestroy($newimage);
Then called the image with
<img src=pic.php>
Working example is at www.finaticsportfishing.com/fishingreports
Click on a post with a picture with it