I've read many posts about unknown function imagecreatefromjpeg(). Such an error messages I get too while trying to resize some JPEG's.
GD library is installed (phpinfo() says so) and I also tried gd_info() but it says that

array(11) { ["GD Version"]=> string(27) "bundled (2.0.15 compatible)" ["FreeType Support"]=> bool(true) ["FreeType Linkage"]=> string(13) "with freetype" ["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 understand that line that says JPEG Support => FALSE is my problem.
My question is how to enable JPG Support?
I'm running my scripts on Apache 2.0.48/PHP 4.3.4/Linux

    You may need to download and install the jpeg-6b library (a link is available here, under "Requirements"). I guess the jpegsrc file is the one you're after.

    Then again, your Linux distribution ought t already have a copy somewhere on it, and depending on which brand of Linux you've got, there may well be some sort of package management utility that will install it for you.

      Write a Reply...