Hallo ich einen Bildgenerator von Textbox Bild codiert, nachdem es schafft, wenn ich es gespeichert werden soll, wie Bild, um es mir zeigt -*.php file, and not .png (image)- Code:Das mit php - imagepng() erstellte Bild kann nicht gespeichert werden.
$name = $_POST['tekst'];
$file ="imgs/tbybc1.png";
header('Content-Type: image/png');
$im = imagecreatefrompng($file);
$white = imagecolorallocate($im, 255, 255, 255);
$grey = imagecolorallocate($im, 128, 128, 128);
$black = imagecolorallocate($im, 0, 0, 0);
$text = $name;
$font = 'fonts/Roboto-Thin.ttf';
imagettftext($im, 40, 0, 70, 215, $white, $font, $text);
//imagettftext($im, 20, 0, 260, 255, $white, $font, $data);
imagepng($im);
imagedestroy($im);
was kann ich für sie tun, ich gegoogelt aber Ich habe nichts gefunden. Gibt es eine Lösung dafür? oder wenn es irgendeine Methode des Bildgenerators gibt, sagen Sie mir :) Danke :)