Ver Mensaje Individual
  #3 (permalink)  
Antiguo 23/12/2010, 08:47
Avatar de ivangd
ivangd
 
Fecha de Ingreso: febrero-2010
Mensajes: 28
Antigüedad: 14 años, 2 meses
Puntos: 0
Respuesta: Librería GD - Firma

Buenas de nuevo,

He probado dos cosas:

1):

Con el siguiente código:

Código PHP:
$mostrar=$firma;

$img_handle ImageCreate (830230) or die ("Cannot Create image"); 
$txt_color ImageColorAllocate ($img_handle2314343); 
ImageString ($img_handle155$mostrar,4); 
ImagePng ($img_handle); 
Resultado: �PNG  IHDR>�.��DPLTE�++���.IDATx���1 �Om ��5^V�0��IEND�B`�

2):

Activando el header:

Código PHP:

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

$mostrar=$firma;

$img_handle ImageCreate (830230) or die ("Cannot Create image"); 
$txt_color ImageColorAllocate ($img_handle2314343); 
ImageString ($img_handle155$mostrar,4); 
ImagePng ($img_handle); 
Resultado: Warning: Cannot modify header information - headers already sent by (output started at /usr/home/thevode.com/web/eagle/genfirmas/formu.php:7)

�PNG  IHDR>�.��DPLTE�++���.IDATx���1 �Om ��5^V�0��IEND�B`�