<?php
php
parse_str($_SERVER['QUERY_STRING']);
// Set the content-type
header("Content-type: image/png");
// Create the image
$im = imagecreatetruecolor(500, 100);
// Background
imagefilledrectangle($im, 0, 0, 499, 99, imagecolorallocate($im, 255, 255, 255));
// Create some colors
$Mc_Black = imagecolorallocate($im, 0, 0, 0);
$Mc_Red = imagecolorallocate($im, 255, 0, 0);
// Replace path by your own font path
$Font_FName = 'Helvetica Nue Normal.ttf';
$Font_LName = 'Mistral.ttf';
imagettftext($im, 50, 0, 12, 52, $Mc_Red, $Font_FName, $FName);
imagettftext($im, 50, 0, 10, 50, $Mc_Black, $Font_FName, $FName);
imagettftext($im, 28, 16, strlen($FName) * 50 - 115, 75, $Mc_Red, $Font_LName, $LName);
// Using imagepng() results in clearer text compared with imagejpeg()
imagepng($im);
imagedestroy($im);
?>