Click to See Complete Forum and Search --> : PHP 4.3.2/GDLib problem


Jon Pearse
07-19-2003, 11:16 PM
Hi,

Interesting problem here in setting up a site for a client. I'm making use of a lot of GD stuff to save the client having to mess around with having to crop images and stuff. However, I've just moved everything to my client's host, and here's where the problems begin

The server is running PHP 4.3.2 and the bundled version of the GDLib. libPNG and libJPEG have been installed as well.
However, for whatever reason, PHP doesn't seem to be picking up libJPEG. It's been configured --with-jpeg-dir=/usr/local/lib/libjpeg.a, but it's still not picking up.
The result that ImageCreateFromJPEG() and other such functions don't work...

Any suggestions?

-Jon

tsinka
07-20-2003, 03:17 AM
Hi,

did you try to compile it with --with-jpeg-dir=/usr/local ? Using the library itself on that parameter could cause troubles since php also needs to find the header files in /usr/local/include.

Thomas

Jon Pearse
07-29-2003, 12:23 PM
I sent the recommendation off to the owner of the server, and we've recompiled everything repeatedly, and still no luck. --with-jpeg-dir=/usr/local didn't work at all.

I've since tried installing and compiling on my YDL machine (which, unfortunately, is sat behind a 56K modem), and it works perfectly. However, doing the same thing on FreeBSD fails horribly.

Furher suggestions would be very much appreciated. Information about the PHP installation running on the server can be found here (http://www.ceredwyn-designs.com/temp.php)

Thanks

-Jon

stolzyboy
07-29-2003, 01:00 PM
what does this tell you when you run it, save it out as a php page and run it

<?
var_dump(gd_info());
?>

Jon Pearse
07-29-2003, 01:08 PM
Originally posted by stolzyboy
what does this tell you when you run it, save it out as a php page and run it

array(10) {
["GD Version"]=>
string(27) "bundled (2.0.12 compatible)"
["FreeType Support"]=>
bool(false)
["T1Lib Support"]=>
bool(false)
["GIF Read Support"]=>
bool(true)
["GIF Create Support"]=>
bool(false)
["JPG Support"]=>
bool(false)
["PNG Support"]=>
bool(true)
["WBMP Support"]=>
bool(true)
["XBM Support"]=>
bool(true)
["JIS-mapped Japanese Font Support"]=>
bool(false)
}

... I kinda expected this result - looking at the GD section in phpInfo() says much the same thing.

/j