1. Add text on Image -Image processing in PHP
<?php
// Import the image to use
$TheImage = imagecreatefromjpeg("pig.jpg");
//Choose the Color of the text...(255,0,0 is red)
$ColorText = imagecolorallocate($TheImage, 255, 0, 0);
// printing the text:.
imagettftext($TheImage, 10, 60, 25, 110, $ColorText, "Verdana", "Happy Valentine");
// Let the browser know that it is an png image..
header("Content-Type: image/png");
// show the image in png format...(png format is clearer
imagepng ($TheImage);
?>