ImageMagicK ImagicK

php + imagemagick + pear + pecl = imagick

use pear pecl to install pecl imagick module
install the following pre-requisites first
# yum install gcc
# yum install php-devel
# yum install ImageMagick
# yum install ImageMagick-devel

# pear list-channels
# pear channel-update pear

# pecl list-channels
# pecl channel-update pecl

# pecl install imagick

# vi /etc/php.ini and add the line 
extension=imagick.so

# service httpd reload


doing all of the above should avoid any errors such as
phpize missing

or
checking whether to enable the imagick extension... yes, shared
checking whether to enable the imagick GraphicsMagick backend... no
checking ImageMagick MagickWand API configuration program... configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.
ERROR: `/var/cache/php-pear/imagick-2.3.0/configure --with-imagick' failed

or
Build process completed successfully
Installing '/usr/lib64/php/modules/imagick.so'
install ok: channel://pecl.php.net/imagick-2.3.0
configuration option "php_ini" is not set to php.ini location
You should add "extension=imagick.so" to php.ini


verify pear pecl imagick install
run
<? phpinfo() ?>
to check imagek has been installed correctly

imagick module	enabled
imagick module version 	2.3.0
imagick classes 	Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator
ImageMagick version 	ImageMagick 6.2.8 04/17/08 Q16 file:/usr/share/ImageMagick-6.2.8/doc/index.html
ImageMagick copyright 	Copyright (C) 1999-2006 ImageMagick Studio LLC
ImageMagick release date 	04/17/08
ImageMagick Number of supported formats: 	153 

A, ART, AVI, AVS, B, BMP, BMP2, BMP3, 
C, CACHE, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CUR, CUT, 
DCM, DCX, DNG, DOT, DPS, DPX, 
EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, 
FAX, FITS, FRACTAL, G, G3, GIF, GIF87, GRADIENT, GRAY, 
etc
etc


PHP imagick example

ImagicKExample


REFERRERS
PHP
PhpPecl

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki