Home > php教程 > php手册 > CentOS下安装ImageMagick和PHP Imagick扩展

CentOS下安装ImageMagick和PHP Imagick扩展

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:08:14
Original
1469 people have browsed it

下载ImageMagick 下载地下是:http://downloads.jmagick.org/6.4.0/ 我们下载: ImageMagick-6.4.0-0.tar.gz wget http://downloads.jmagick.org/6.4.0/ImageMagick-6.4.0-0.tar.gz 安装ImageMagick tar zvxf ImageMagick-6.4.0-0.tar.gzcd ImageMagick-6.4.

下载ImageMagick

下载地下是:http://downloads.jmagick.org/6.4.0/

我们下载:
ImageMagick-6.4.0-0.tar.gz

wget http://downloads.jmagick.org/6.4.0/ImageMagick-6.4.0-0.tar.gz 
Copy after login

安装ImageMagick
tar zvxf ImageMagick-6.4.0-0.tar.gz
cd ImageMagick-6.4.0-0
./configure --prefix=/opt360/ImageMagick-6.4.0 --with-quantum-depth=8   --enable-share 
Copy after login

configure参数说明:
–enable-shared 编译成共享库
–disable-static 不编译成静态库
–disable-openmp 禁用多线程,使用多线程性能并没有提高,但CPU占用达到了100%,所以禁用了。
–with-quantum-depth=8 使用8位色深。我的1200万像素数码相机,照出的图片就是8位色深。
–with-windows-font-dir=目录 ,指明字体文件的目录(后面将人工复制中文字体文件到这个目录)
安装命令:
make
make install 
Copy after login

验证configuration情况:

identify -list configure 
Copy after login

验证支持的图片格式:
identify -list format 
Copy after login

最後就

pecl install imagick 
Copy after login

需要在/etc/php.ini 加上

extension=imagick.so 
Copy after login

重啟httpd
查看 phpinfo() 就有imagick 了
Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template