Buenas de nuevo,
He probado dos cosas:
1):
Con el siguiente código:
Código PHP:
$mostrar=$firma;
$img_handle = ImageCreate (830, 230) or die ("Cannot Create image");
$txt_color = ImageColorAllocate ($img_handle, 231, 43, 43);
ImageString ($img_handle, 1, 5, 5, $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 (830, 230) or die ("Cannot Create image");
$txt_color = ImageColorAllocate ($img_handle, 231, 43, 43);
ImageString ($img_handle, 1, 5, 5, $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`�