$im = imagecreatetruecolor(120, 20);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5, 'A Simple Text String', $text_color);
// Set the content type header - in this case image/jpeg
header('Content-type: image/jpeg');
// Output the image
imagejpeg($im);
// Free up memory
imagedestroy($im);
and put it in my page, still same errors and here's the phpinfo output about GD: in the attachment.
now how can i debug this situation? btw when i remove the header content type, i get the JPEG header (in text) and a bunch of weird characters, any help?
Edit: i tried to save the image into a file and it's saved correctly, so why it isn't displaying in any browser?
This post has been edited by IrisBlaze: 07 March 2011 - 12:47 AM

New Topic/Question
Reply




MultiQuote





|