Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/03/2010, 11:53
LLap
 
Fecha de Ingreso: marzo-2009
Mensajes: 39
Antigüedad: 17 años, 6 meses
Puntos: 1
PHP GD - No hay manera... Recuadro negro

Hola buenas.
Estoy intentano hacer una pruebas con PHP GD para mostrar un texto como imagen y no hay manera.
Me sale un rectángulo negro (200x100) y no se que probar.
Aquí el código de pruebas:

Código PHP:
<?php
header
("Content-type: image/png");
$im = imagecreatetruecolor(200, 100);
$color = imagecolorallocate($im, 255, 255, 255);
$fuente = "GoodDogCool.otf";
imagettftext($im, 15, 0, 15, 20, $color, $fuente, "TEXTO!");
imagepng($im);
imagedestroy($im);
?>
Cualquier ayuda es bienvenida

Un saludo