Ver Mensaje Individual
  #7 (permalink)  
Antiguo 31/07/2008, 06:19
anion0x
 
Fecha de Ingreso: junio-2008
Mensajes: 110
Antigüedad: 15 años, 10 meses
Puntos: 0
Respuesta: imagen dinamica

tengo el siguiente inconveniente:

Código:
<?php

header("Content-type: image/png");

$im = imagecreatefrompng("banner.png");

$negro = imagecolorallocate($im, 0, 0, 0);

$fuente = 'arial.ttf';
$texto = "ejemplo";

imagettftext($im, 20, 0, 10, 20, $negro, $fuente, $texto);

imagepng($im);

imagedestroy($im);


?>
ME arroja el siguiente error:

Código:
The image “http://localhost/imgdin/” cannot be displayed, because it contains errors.