2011-03-25, 06:10:14
GetSimple was throwing an error when I try to create a thumbnail of an image in 3.0B r415.
Here's the PHP error from the server logs:
Obviously it can't find "ImageCreateFromJpeg".
===============
Found solution:
----
Although my PHP had GD correctly installed, it didn't have jpeg support. This was because my libjpeg library wasn't installed correctly.
I ended up downloading and compiling from source the latest libjpeg from here:
http://www.ijg.org/
And then I had to recompile PHP with the '--with-jpeg-dir=/usr/local/lib' option
Suggestion for GetSimple
----
When you install GetSimple, check for GD support for all file types and alert the user if support isn't present.
Robin.
Here's the PHP error from the server logs:
Code:
PHP Fatal error: Call to undefined function ImageCreateFromJpeg() in /var/www/nutshelldance.co.uk/admin/inc/image.class.php on line 97
PHP Stack trace:
PHP 1. {main}() /var/www/nutshelldance.co.uk/admin/inc/thumb.php:0
PHP 2. Zubrag_image->GenerateThumbFile() /var/www/nutshelldance.co.uk/admin/inc/thumb.php:128
PHP 3. Zubrag_image->ImageCreateFromType() /var/www/nutshelldance.co.uk/admin/inc/image.class.php:191
Obviously it can't find "ImageCreateFromJpeg".
===============
Found solution:
----
Although my PHP had GD correctly installed, it didn't have jpeg support. This was because my libjpeg library wasn't installed correctly.
I ended up downloading and compiling from source the latest libjpeg from here:
http://www.ijg.org/
And then I had to recompile PHP with the '--with-jpeg-dir=/usr/local/lib' option
Suggestion for GetSimple
----
When you install GetSimple, check for GD support for all file types and alert the user if support isn't present.
Robin.