<?php 
error_reporting
(E_ALL);
header("Content-type: image/png");
//die('Hi');


//Parameter
$cnb= $_GET['cnb'];

//bild aus datei
$img_bg = imagecreatefrompng("grafiken/img.png");

// Farben festlegen
$color_circle = imagecolorallocate($img_bg, 128, 0, 0);
$color_text = ImageColorAllocate ($img_bg, 255, 255, 255);

//Elipse
//mit folgenden Kordinaten (x1, y1, x2, y2, Farbe);
imagefilledellipse($img_bg, 30, 24, 16,16, $color_circle);

//Ziffer
ImageString ($img_bg, 7, 27, 17, $cnb, $color_text);

//Ausgabe des Bildes
imagepng($img_bg);
?>