I hate windows.
1. Download the installation ImageMagick, select the appropriate version of your computer, I downloaded: imagemagick-6.8.9-1-q16-x86-dll.exe
Http://www.imagemagick.org/script/binary-releases.php#windows
This step encountered the installation problem, missing. dll files, to find the appropriate files online!
2. Download Imagick for PHP, I chose the stable version here. Choose the appropriate version of your computer, I downloaded: 5.5 Thread Safe (TS) x86
Address: Http://pecl.php.net/package/imagick/3.1.2/windows
Although the PHP manual declares that the Imagick can be installed through the Pecl install, I have not tried to succeed and always have a variety of problems. Usually try to modify config-set, still can't work, finally give up!
A. Php_suffix not match
B. IMAGICK.DSG NOT EXISTS
3. After extracting the files downloaded from the second step, copy the file ' Php_imagick.dll ' to the extension directory of PHP, my directory is: D:\xampp\php\ext
copy all other. dll files to the C:\Windows\System32 directory .
4. Added in the php.ini file: Extension=php_imagick.dll
5. Restart Apache, usually, it's over here!
Unexpected problem:
1. When you start Apache, you cannot locate the dynamic library and see if the third step is working correctly.
2. After normal startup, Php_info (), prompting Imagick to support the number of formats is 0, this solution is not repeated verification! I have also encountered this problem and have tried the following steps, but I am not sure which step works specifically
A. Step 1, to the installation directory, locate directory modules/coders, modoules/filters, copy all the files under two directories to the root directory of the installation, my directory structure is like this
D:\Program files\imagemagick\modules\coders\* Copy to D:\Program files\imagemagick\
D:\Program files\imagemagick\modules\filters\* Copy to D:\Program files\imagemagick\
B. In step 3, the file php_imagick.pdb in the Php_imagick.dll sibling directory is copied to the PHP extension directory.
C. View the environment variable path, whether it contains the installation directory for ImageMagick.
Hope that there is a word to help you!