newer versions of GD doesnt support JPEG.

try to use PNG instead

Rafael

-----Original Message-----
From: Thomas D. Kryger [mailto:[EMAIL PROTECTED]]
Sent: Lunes, 21 de Mayo de 2001 01:08 p.m.
To: Php-Install
Subject: [PHP-INST] RH7, gd and php4.0.4pl1


Hi

I need some help installing gd-support with jpeg and png support on my Red
Hat 7.
I have compiled a version of php4.0.4 witch have support for gd, but when i
run this script:
<?
// create the image
$gif = imagecreate(200,200);
$bg = ImageColorAllocate($gif,0,0,0);
$tx = ImageColorAllocate($gif,255,128,128);
ImageFilledRectangle($gif,0,0,200,200,$bg);
ImageString($gif,3,70,90,"it works !",$tx);

// send the image
//header("content-type: image/jpg");
Imagejpeg($gif, 'test.jpg', 100);
?>
i get this result:
Warning: ImageJpeg: No JPG support in this PHP build in
/var/www/html/test.grafik.php on line 11

I have compiled php4.0.4 with this config:
--with-mysql --with-apxs --with-gd
and i get two warnings telling my to use --with-xpm-dir
and/or --with-jpeg-dir i configure fails, but i don't get any errors, just
the two warnings

i have installed jpeg from jpegsrc.v6b.tar.gz, and libpng from
libpng-2.1.0.3-1.i386.rpm, and i assumed that gd is installed by the Red Hat
installer.

Best regards
Thomas D. Kryger
www.akvariet.dk
www.akvariemarked.dk


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to