Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thumbnail creation not working
#1
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:

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.
Reply
#2
Quote: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
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply




Users browsing this thread: 1 Guest(s)