G--D--- GD and PHP!
March 1, 2007 7:15 AM
Subscribe
Help me with PHP configuration for GD and JPEG. I can't determine why JPEG functions aren't working.
I've installed PHP 5.2.0 on a FreeBSD server with the following:
'./configure' '--with-mysql' '--with-apxs=/usr/local/apache/bin/apxs' '--with-gd' '--with-gettext=/usr/local/lib' '--with-png-dir=/usr/local/lib' '--with-jpeg-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib' '--with-zlib-dir=/usr/local/zlib-1.2.3'
When I check the GD section on phpinfo(), here is what I see:
GD Support enabled
GD Version bundled (2.0.28 compatible)
GIF Read Support enabled
GIF Create Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
And of course, a script that I'm using with the ImageCreateFromJPEG function fails. What I am missing? Before you ask, libjpeg.so exists in /usr/local/lib
posted by Robert Angelo to computers & internet (13 comments total)
1 user marked this as a favorite
Define "fails." The function name isn't capitalized; it's a lowercase imagecreatefromjpeg(). So if you're using a capitalized name and getting a "function does not exist" error, that's probably your problem. But if you're using the lowercase name, what exact error are you getting?
posted by scottreynen at 8:05 AM on March 1, 2007