Mittwoch, 29. September 2010

Drupal und das PHP GD Problem

Hallo,

falls ihr Drupal nutzt und ihr einen eigenen VServer oder Server habt und diese Meldungen kommen:

GD Image FilteringLow 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 RotationLow 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.

Gibt es eine Lösung:

Hier mal auf Deutsch:




Für Ubuntu Hardy bis Lucid:

apt-get install build-essential debhelper fakeroot
cd /usr/src
apt-get source php5
apt-get build-dep php5
cd php5-5.X.X #durch eure Versionen Ersetzen

Anschließend müsst ihr in "debian/rules:
--with-gd=shared,/usr --enable-gd-native-ttf \
durch folgendes ersetzen:
--with-gd=shared --enable-gd-native-ttf \
Also einfach nur ",/usr" entfernen.

Nun bauen wir es mit:
dpkg-buildpackage -rfakeroot

Installiert wird es mit:
dpkg -i php5-gd_5*deb

und jetzt nur noch den apache neustarten!

/etc/init.d/apache2 restart

Ich danke den User patusovniak für diese Tolle Tutorial!

Keine Kommentare:

Kommentar veröffentlichen