header('Content-type: image/png';
$s = sprintf ("%04d-%02d-%02d", $o['year'],$o['month'], $o['day']); # String
$x_size = 10; #Breite
$y_size = 50; #Höhe
$IMGResource = ImageCreate();
$white= imagecolorallocate ($text_image, 255,255, 255); # weisse Schriftfarbe
imagestringup (IMGResource , 1, $x_size, $y_size, $s, $white);
ImagePNG($IMGResource);
Ungetestet... Müsste aber hinkommen
// resource ist die Bildressource von ImageCreate().