This article describes in detail the PHP picture library ImageMagick installation method. Share to everyone for your reference. The specific methods are 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 picture library
ImageMagick needs to rely on Third-party picture libraries such as jpeg,png when working with pictures.
Third party picture 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 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 see if the installation was successful.
If an error while loading shared librariesis present, see here to resolve: http://www.jb51.net/article/55526.htm
I hope this article will help you with your PHP program design.