I'm trying to create thumbnails for some images. In order to do this I'd like to use the function imagecreatefromjpeg available in the php-gd class (I'm using this function because I found some code on the web that seemed pretty straight forward). However I'm getting the error:
PHP Fatal error: Class 'imagecreatefromjpeg' not found
I've checked that the GD Class is installed and available, and it is:
gd GD Support enabled GD Version bundled (2.0.34 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.3.11 GIF Read Support enabled GIF Create Support enabled JPEG Support enabled libJPEG Version 6b PNG Support enabled libPNG Version 1.2.49 WBMP Support enabled XPM Support enabled XBM Support enabled
I've also read that I needed the php-gd packaged installed in my CentOS server, which I it is:
I did a quick search for the jpeg library and found:
I also read that I needed to include this library in the php.ini, which I also did:
- How can I validate that the gd library is actually configured and accessible?
- Is there anything else missing from my configuration?
Current PHP Version: 5.3.3-23.el6_4