Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/03/2010, 11:53
LLap
 
Fecha de Ingreso: marzo-2009
Mensajes: 39
Antigüedad: 15 años
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(200100);
$color imagecolorallocate($im255255255);
$fuente "GoodDogCool.otf";
imagettftext($im1501520$color$fuente"TEXTO!");
imagepng($im);
imagedestroy($im);
?>
Cualquier ayuda es bienvenida

Un saludo