PDA

View Full Version : Unable to create thumbnails using CivicSpace/Drupal


usafaway
10-07-2006, 10:54 AM
Hello. I have searched on this topic, and not found resolution, so please help if you can. I am new to Bluehost, and have moved over my site. It's based on the CivicSpace distribution of Drupal. You can view it here (http://www.usafablackgrads.com).

Things seem to be running smoothly but I just discovered that thumbnails can no longer be automaticly created. I've checked the permissions of the appropriate folders, and they are fine. JPG and BMP gives errors but still uploads the fullsize image. Other extensions (PNG, GIF) make automatic thumbnails with no problem.

The drupal site says (http://drupal.org/node/74292):

I think this is an issue to do with the GD Image Library and PHP not being compiled with JPEG image support. The server I was getting this on didn't have jpeg-6b installed and PHP wasn't configured with include --with-jpeg-dir=/usr/local (or the correct dir).

And the CivicSpace Site recommends following these instructions (http://www.wikihow.com/Enable-Image-Support-for-Php):

How to Enable Image Support for Php
Enabling support for images such as JPEG and PNG images on PHP should be relatively easy, unfortunately online documentation on how to do this is unclear. The following is a list of steps that you can take to enable PHP support for your site. You might want to do this if you're trying to enable thumbnail generation on MediaWiki and you encounter an error like Fatal error: Call to undefined function: imagecreatefromjpeg() .
For SLES 9 simply install the following rpms:


t1lib-1.3.1-569.1.i586.rpm
php4-gd-4.3.4-43.8.i586.rpm
These steps were performed on a Red Hat Enterprise Linux ES release 3 machine, running PHP 4.3.10 and Apache 2.0.52.

Both of these recommendations appear to be something Bluehost has to do/setup/activate, but can someone tell me if there's a quick way to fix it myself? I need to fix my site so that people can load pictures and the thumbnails are automatically generated. On my last host, there was nothing special I had to do. The photos just automatically worked.

Thanks in advance,

JWig

usafaway
10-09-2006, 06:32 AM
Am I the only one who's had/having trouble with photos on Drupal? Please help, if you can. CivicSpace is just a packaged version of Drupal. Please let me know how (if) you over came this problem and how I may do the same.