Download & Extend

Error GD Image Filtering & GD Image Rotation

Project:ImageAPI
Version:6.x-1.6
Component:ImageAPI GD
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Hello,

i have follow error in my drupal site.

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.

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.

My system is running on debian 5.0 lenny with follow php version 5.2.6-1+lenny3.
The Package php5-gd is installed! But the error is not going!

What i must doing for complete GD Image Filtering and GD Image Rotation?
please help me :-)

Comments

#1

I have the same problem, any help would be appreciated.

#2

If you have server access, try following the instructions here: http://cumu.li/2008/5/13/recompiling-php5-with-bundled-support-for-gd-on.... if not get your webhost to.

The debain package ships with a version of GD that does not have the full set of image functions that can be found in the version of GD that is in the php package. The instructions above show how to get hold of the php version of GD. You will need to have a reasonable level of expertise to succeed. I found that my directory names didn't fully correspond with that given.

#3

it takes a long time to install the php version of GD.

#4

#5

for solved this bug you need next steps:
1. use dotdeb repository
deb http://packages.dotdeb.org stable all
deb-src http://packages.dotdeb.org stable all

put this lines In your /etc/apt/sources.list file

2. run sudo apt-get update
3. reinstall php, php-gd

#6

Status:active» needs review

I realized the real error was not having extension=apc.so in /etc/php5/apache2/php.ini and then reloading apache2.

#7

Status:needs review» fixed

#8

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#9

If apt-get warns you about the signatures of dotdeb.org then run the following commands:

gpg --keyserver keys.gnupg.net --recv-key 89DF5277
gpg -a --export 89DF5277 | sudo apt-key add -

found them here:
http://www.dotdeb.org/2010/07/11/dotdeb-packages-are-now-signed/

#10

Thanks Vadim, (post #5) this solved my problem without a recompile.

I did have to comment out other repositories in both my sources.list and securities.sources.lists files before apt-get would pull php5-gd from the packages.deb.org repository. I also had to install gnupg (apt-get install gnupg) and import the keys as described by bserem in post #9 of this thread.

I'm using the current Turnkey Linux LAMP server as a starting point. It uses Ubuntu 8.04.4 LTS.

I also noted that for this server the apt source directory is "/etc/apt/sources.list.d/" with sources.list and security.sources.list found there.

Thanks for the excellent info!

Joe

#11

Previously I was solving this error like in #5 comment. Although there is a drawback at least for me to find a solution. Ubuntu server updates concerning PHP does not run after #5 solution. And if you use other Ubuntu servers than LTS, it is very likely, that in a 3 years period you will lack any update libraries at all. Does anybody has a solution for dotdeb.org library updates?

#12

Regarding comment number 5 it should be the following

deb http://packages.dotdeb.org oldstable all
deb-src http://packages.dotdeb.org oldstable all

using the stable option will cause all sorts of errors if you are still using Lenny and php 5.2.x

The instructions can be found here:
http://www.dotdeb.org/instructions/

#13

1) the explanations are in bug debian bug #321237
2) Lenny is the oldstable, it is not a problem anymore in the current stable (Squeeze) :

# php --re gd|grep Function|grep -c imagerotate
1