Código PHP:
<?php
// Establecer el tipo de contenido
header("Content-type: image/gif");
// Crear la imagen
$backgroundimage = "plantilla-comun.gif";
$im =imagecreatefromgif($backgroundimage);
// Crear algunos colores
$bg = imagecolorallocate ($im, $bgr, $bgg, $bgb);
$blanco = imagecolorallocate($im, 255, 255, 255);
$gris = imagecolorallocate($im, 0, 0, 1);
$negro = imagecolorallocate($im, 0, 0, 0);
$trans = imagecolorallocatealpha($im, 0, 0, 255, 75);
imagefilledrectangle($im, 0, 0, 0, 0, $bg);
// Reemplaze la ruta con su propio ruta a la fuente
$fuente = 'fonts/arialblack.ttf';
// Agregar una sombre al texto
imagettftext($im, 10, 0, 7, 27, $blanco, $fuente, $texto);
// Agregar una sombre al texto
imagettftext($im, 10, 0, 5, 25, $gris, $fuente, $texto);
// Agregar una sombre al texto
imagettftext($im, 10, 0, 7, 44, $blanco, $fuente, $texto2);
// Agregar una sombre al texto
imagettftext($im, 10, 0, 5, 42, $gris, $fuente, $texto2);
// Agregar una sombre al texto
imagettftext($im, 10, 0, 7, 61, $blanco, $fuente, $texto3);
// Agregar una sombre al texto
imagettftext($im, 10, 0, 5, 59, $gris, $fuente, $texto3);
// Agregar una sombre al texto
imagettftext($im, 10, 0, 7, 78, $blanco, $fuente, $texto4);
// Agregar una sombre al texto
imagettftext($im, 10, 0, 5, 76, $gris, $fuente, $texto4);
// Usar imagepng() resulta en texto mas claro, en comparacion con imagejpeg()
imagegif($im);
imagedestroy($im);
?>