PHP GD library

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
R-H's picture

I'm getting a status report message that the installed version of PHP GD is insufficient. I'm told that I should "recompile PHP --with-gd". Is there a reason why the Mercury AMI doesn't have the PHP GD library?

DRUPAL STATUS REPORT MESSAGE

GD Image Filtering Low Quality / Poor Performance
The installed version of PHP GD does not support image filtering (desaturate, blur, negate, etc). It was probably compiled using the official GD libraries from http://www.libgd.org instead of the GD library bundled with PHP. You should recompile PHP --with-gd using the bundled GD library. See http://www.php.net/manual/en/image.setup.php. An implementation of imagefilter in PHP will be used in the interim.

Comments

Image Rotation

R-H's picture

Seems like Drupal is telling me it wants GD to be enabled to image rotation too:

DRUPAL STATUS REPORT MESSAGE
GD Image Rotation Low Quality / Poor Performance
The installed version of PHP GD does not support image rotations. It was probably compiled using the official GD libraries from http://www.libgd.org instead of the GD library bundled with PHP. You should recompile PHP --with-gd using the bundled GD library. See: http://www.php.net/manual/en/image.setup.php. An implementation of imagerotate in PHP will used in the interim.

unable to reproduce

Greg Coit's picture

ryhn,

I'm unable to reproduce this error on either the 32 bit or 64 bit versions of Mercury Beta 0.71.

Please make sure the following packages are installed:

libgd2-xpm
php5-gd

Hope this helps,

Greg

--
Greg Coit
Systems Administrator
http://www.chapterthree.com

ImageCache Module Responsible

R-H's picture

Thanks for your help. The issue arises when you turn on the imagecache module with the ImageAPI GD2 module.

Ryan

The problem is that

Macronomicus's picture

The problem is that Debian/Ubuntu does not use anywhere near the latest GD libraries. Im not 100% certain but I think these builds are all running ubuntu. Installing php5-gd with apt-get is really not going to do anything for you as they debian/ubuntu built it with an outdated gd library instead of the one bundled with the modern php, which has superior performance and many added features.

Also beware of using the dot.deb folks stuff as is suggested around the net, as those are made for debian and not ubuntu and will mess up many things such as pecl which you may need if you want to fix the other issue you posted in here about the upload progress thingy... pecl makes installing such things a sinch but was ruined when I tested the dot.deb solution. Search around you will find instructions for that upload progress bit.

If you must have the real gd-library then recompile your php with it, otherwise wait a bit as it looks like they are working to deal with this issue, finally! The main bug has been going since january 07 https://bugs.launchpad.net/ubuntu/+source/php5/+bug/74647

Here are some pertinent recompile instructions http://www.howtoforge.com/recompiling-php5-with-bundled-support-for-gd-o...

Im no guru but just traveled down this very path recently and love to share! Maybe im totally wrong so dont kill me if all goes whack on ya .. be sure to ask around and look up as much info as you can ... a test environment would be smart too.

Just wanted to add

Macronomicus's picture

That its not really a bug but apparently the gd library was a bit convoluted and basically a fork which the debian/ubuntu folks dont like to work with for various reasons that were important to them. Still like I said they are working on a solution and besides which you can always recompile your php if you absolutely need it. I dont want to be an OSDB! http://mikethecoder.com/2009/11/16/the-number-one-rule-of-open-source lol!

re: PHP GD library

Greg Coit's picture

Thanks for the additional information. This has been confirmed as a bug and we hope to have it fixed in the next release of Mercury.

Thanks!

Greg

--
Greg Coit
Systems Administrator
http://www.chapterthree.com

Another option is to switch

brianmercer's picture

Another option is to switch to imagemagick.

Drupal 7: ImageAPI GD2 module

quiptime's picture

With Drupal 7 use the ImageAPI module and enable the ImageAPI GD2 submodule.

I went the other route

Macronomicus's picture

Seems imagemagick is a lot better anyhow... at least for me.
Cheers!

lol .. imagemagick no workie

Macronomicus's picture

lol .. imagemagick no workie in d7 ... lol time to kick this around ... again...