<?
header("Content-type: image/jpeg");
  $im = @ImageCreate(100, 100);

  $white = imagecolorallocate($im, 255, 255, 255);
  $black = imagecolorallocate($im, 125, 125, 125);

  imagettftext($im, 17, -40, 5, 24, $black, "agdollar.ttf", "No Image");

  imagejpeg($im);
  ImageDestroy($im);
?>
Published in: PHP
Download

Related snippets