hab auf meinem Rootserver (Suse 9.1, Apache 2, PHP 4.3.11) Imagemagick installiert - läuft in der shell einwandfrei, jedoch nicht mit php.
Bin folgendermaßen vorgegangen:
ordner usr/local/src
Code: Select all
wget ...imagemagick6.2.2Code: Select all
./configure --enable-lzw=yes --enable-shared=yes --disable-static --without-perl
make
make installCode: Select all
cd ext/imagick
phpizeCode: Select all
/usr/local/src/php-4.3.11/
rm ./configure
./buildconf --force
'./configure' '--prefix=/usr' '--datadir=/usr/share/php' '--mandir=/usr/share/man' '--bindir=/usr/bin' '--libdir=/usr/share' '--includedir=/usr/include' '--sysconfdir=/etc' '--with-_lib=lib' '--with-config-file-path=/etc' '--with-exec-dir=/usr/lib/php/bin' '--disable-debug' '--enable-inline-optimization' '--enable-memory-limit' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sigchild' '--disable-ctype' '--disable-session' '--without-mysql' '--disable-cli' '--with-pear' '--with-openssl' '--with-imagick=/usr/local/src/ImageMagick6.2.2' '--with-apxs2=/usr/sbin/apxs2-prefork' 'i586-suse-linux'
als php-testscript hab ich folgendes verwendet:
Code: Select all
<?PHP
header("Content-type: image/jpg");
$cmd = "convert xc:#000000 -resize '500x150!' -gravity 'Center' -pointsize '64'
-fill '#000099' -draw 'text -4,-16 "Hello World"' jpg:-";
passthru($cmd);
?>
Gruß
snake*sl