TTF2PNG - create png from ttf
:: home ::
$fontsource
";
$breite = 250;
$hoehe = 80;
$img = imagecreate ($breite, $hoehe);
$black = ImageColorAllocate ($img, 0, 0, 0);
$white = ImageColorAllocate ($img, 255, 255, 255);
$grey = ImageColorAllocate ($img, 192, 192, 192);
$bordercol = ImageColorAllocate ($img, 239, 237, 222);
imagefilledrectangle($img, 0, 0, $breite, $hoehe, $white);
ImageTTFText($img, 20, 0, 5, 25, $black, $fontsource, $n);
ImageTTFText($img, 20, 0, 5, 50, $grey, $fontsource, "abcdefghijklmnopqrstuvwxyz");
ImageTTFText($img, 20, 0, 5, 75, $grey, $fontsource, "ABCDEFGHIJK - 0123456789");
imagerectangle($img, 1, 1, $breite-1, $hoehe-1, $bordercol);
imagefilledrectangle($img, $breite-4, 2, $breite-2, $hoehe-2, $white);
imagefilledrectangle($img, 2, $hoehe-4, $breite-2, $hoehe-2, $white);
Imagepng($img,"$picpfad$thumb_file",80);
$img = imagecreate ($breite, $hoehe);
$black = ImageColorAllocate ($img, 0, 0, 0);
$white = ImageColorAllocate ($img, 255, 255, 255);
$grey = ImageColorAllocate ($img, 192, 192, 192);
$bordercol = ImageColorAllocate ($img, 239, 237, 222);
imagefilledrectangle($img, 0, 0, $breite, $hoehe, $white);
ImageTTFText($img, 50, 0, 5, 70, $black, $fontsource, $n." 1234567890");
imagerectangle($img, 1, 1, $breite-1, $hoehe-1, $bordercol);
imagefilledrectangle($img, $breite-4, 2, $breite-2, $hoehe-2, $white);
imagefilledrectangle($img, 2, $hoehe-4, $breite-2, $hoehe-2, $white);
Imagepng($img,"$picpfad$thumb_file_big",80);
ImageDestroy ($img);
}
?>
.png">
_b.png">