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.