Home  >  Article  >  Backend Development  >  PHP image library imagemagick installation method, _PHP tutorial

PHP image library imagemagick installation method, _PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:18:341013browse

How to install PHP image library imagemagick,

This article describes in more detail the installation method of the PHP image library imagemagick. Share it with everyone for your reference. The specific method is as follows:

1. Download ImageMagick

http://www.imagemagick.org/download/ Download ImageMagick-6.8.5-10.tar.gz and start the installation after the download is complete.

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

2. Install a third-party image library

ImageMagick needs to rely on third-party image libraries such as jpeg, png and so on when processing images.
Third-party image library download address: http://www.imagemagick.org/download/delegates/ Download 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 

3. Install ImageMagick

cd ImageMagick-6.8.5.10 
sudo ./configure 
sudo make 
sudo make install 

After the installation is successful, use the command convert -version to check whether the installation is successful.
If error while loading shared libraries occurs, please see the solution here: http://www.bkjia.com/article/55526.htm

I hope this article will be helpful to everyone’s PHP programming design.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/882895.htmlTechArticleHow to install the PHP image library imagemagick. This article describes the installation method of the PHP image library imagemagick in more detail. Share it with everyone for your reference. The specific method is as follows: 1. Download ImageMa...
Statement:
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