Your GD library was not built with jpeg support.

On Mon, 14 Oct 2002, New Disorder Records wrote:

> Hi,
>   I have installed php several times, but this is the first time I've
> tried to make image generation work.  I compiled php against gd-1.8.4, yet
> when I run this code:
>
> header("Content-type: image/jpeg");
>
> $im = imagecreate(50,100);
> $white = imagecolorallocate($im, 255,255,255);
> $black = imagecolorallocate($im, 0, 0, 0);
> imagefilledrectangle($im, 0,0, 49, 99, $white);
> imagefilledrectangle($im, 15, 15, 20, 60, $black);
> imagejpeg($im, '', 75);
>
> I get this error:
>
> [Mon Oct 14 11:28:33 2002] [error] PHP Fatal error:  Call to undefined
> function:  imagejpeg() in /usr/www/gold/imgen/index.php on line 9
>
> I find it odd that none of the other image functions fail, and running
> 'strings' against libphp4.so tells me that the imagejpeg function is in
> the binary.  Any ideas?
>
>
>
> --
> New Disorder Records "you've heard of us now, so shut up and buy the damn
> Sacrilicious CD" - www.newdisorder.com
> Pirx the Pilot: One of the top three Structuralist punk rock bands in the
> country.  www.pirxthepilot.com
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to