CentOS 6 安装ImageMagick和imagick

最近在搞一个图片服务器,进行项目图片的统一管理,需要安装 imagemagick 和 imagick,于是查了下资料,安装了下。

ImageMagick手册和下载地址:http://www.jmagick.org/
下载 ImageMagick :wget http://www.jmagick.org/6.4.0/ImageMagick-6.4.0-0.tar.gz
安装 imagemagick :
tar -zxvf ImageMagick-6.4.0-0.tar.gz

./configure --prefix=/path/imagemagick --enable-share --enable-static --with-jpeg=yes --with-png=yes --with-tiff=yes --with-jp2=yes --without-perl

make

make install

 

imagick扩展安装包下载地址:http://pecl.php.net/package/imagick
下载 imagick :wget http://pecl.php.net/get/imagick-3.1.0RC1.tgz
安装 imagick:
tar -xzvf imagick-3.1.0RC1.tgz

phpize

./configure --with-php-config=/path/php/bin/php-config --with-imagick=/path/imagemagick

make

make install


最后在php.ini中添加 imagick.so 扩展,并重启php服务。

 

【版权申明】未经博主同意,谢绝转载!(请尊重原创,博主保留追究权) http://www.cnblogs.com/facetwitter/p/7169016.html

posted @ 2017-07-14 11:03  saneim  阅读(747)  评论(0编辑  收藏  举报