Topic: Thumbnail creation not working

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:

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.

Re: Thumbnail creation not working

When you install GetSimple, check for GD support for all file types and alert the user if support isn't present.

That is a good suggestion, even that case of unsupported JPG is really a rare case

|--
Die deutsche GetSimple-Webseite: http://www.Get-Simple.de = the german Get-Simple-Website!
Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forum/forum/16/german-deutsch/