PHP图片库imagemagick安装方法_php技巧

WBOY
Release: 2016-05-16 20:35:39
Original
1134 people have browsed it

本文较为详细的讲述了PHP图片库imagemagick的安装方法。分享给大家供大家参考。具体方法如下:

1.下载ImageMagick

http://www.imagemagick.org/download/ 下载 ImageMagick-6.8.5-10.tar.gz ,下载完毕后开始进行安装。

cd ./Downloads 
tar xzvf ImageMagick-6.8.5-10.tar.gz 

Copy after login

2.安装第三方图片库

ImageMagick在处理图片时需要依赖jpeg,png等第三方图片库。
第三方图片库下载地址:http://www.imagemagick.org/download/delegates/ 下载 jpegsrc.v9.tar.gz

gunzip jepgsrc.v9.tar.gz 
tar -xvf jpegsrc.v9.tar 
cd jpeg-9 
sudo ./configure 
sudo make 
sudo make test 
sudo make -n install 

Copy after login

3.安装ImageMagick

cd ImageMagick-6.8.5.10 
sudo ./configure 
sudo make 
sudo make install 
Copy after login

安装成功后,使用命令convert -version 查看是否安装成功。
如出现error while loading shared libraries,请看这里解决:http://www.jb51.net/article/55526.htm

希望本文所述对大家的PHP程序设计有所帮助。

source:php.cn
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template