Thansk for the reply -
This is not specific to any format. As soon as I call any function from php_gd.dll I get the same error. It looks like the library is not being referenced - but I don't know why - it looks like the module is loaded by php okay.
Eaxmple:
Calling imagecreate(200,200)in the following example gives me the same error:
<?php
// Header( "Content-type: image/png");
Header( "Content-type: image/jpeg");
/ create image /
$image = imagecreate(200,200);
/ create color R=100, G=0, R=0 /
$maroon = ImageColorAllocate($image,100,0,0);
/ create color R=255, G=255, R=255 /
$white = ImageColorAllocate($image,255,255,255);
/ create color green /
$green = ImageColorAllocate($image,0,100,0);
/ create white background/
ImageFilledRectangle($image,0,0,200,200,$white);
/ create frame/
ImageRectangle($image,10,10,190,190,$maroon);
/ create inner rectangle/
ImageFilledRectangle($image,50,70,150,150,$maroon);
/ display 5 fonts /
for ($i=1; $i <= 5; $i++)
ImageString($image,$i,15,$i*10,'php.weblogs.com',$green);
/ render image /
// ImagePNG($image);
ImageJPEG($image);
/ cleanup memory /
ImageDestroy($image);
?>
The error returned from this particular example is:
<b>Fatal error</b>: Call to undefined function: imagecreate() in <b>htdocs/gddemo.php</b> on line <b>6
Any more ideas? :-)
Regards,
Mark.