Trouble rendering GD image creation
Posted: Sat Sep 19, 2009 4:28 am
I have the latest version of WAMP installed with the following enabled in php.ini
extension=php_gd2.dll
gd.jpeg_ignore_warning = 0
but when I test
I get
Any ideas or further changes to the ini? Thanks
extension=php_gd2.dll
gd.jpeg_ignore_warning = 0
but when I test
Code: Select all
header("Content-type: image/png");
$im = @imagecreate(110, 20)
or die("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate($im, 0, 0, 0);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5, "A Simple Text String", $text_color);
imagepng($im);
imagedestroy($im);
Code: Select all
?PNG ??? IHDR???n??????V,????PLTE????[an????fIDAT?c`?`fx???`?????41???????q?@?;{á0? ?i