【巨坑--問你怕不怕】--windows下面配置imagick的相關資料。
Here is what I did to get it working Note: The step that really tripped me up that didn't really explain is that the php_imagick.dll version should match your install of imagick
The zip file will contain many dlls keep this in mind, we may need it in future. Extract php_imagick.dll to your extension folder
Put that in extension folder
IN php.ini add extension = php_imagick.dll
Now the issue is we need to find out what version of imagick the php_imagick.dll was compiled for Open command prompt and type in php -e -v The way I did this was with the zip you downloaded earlier, extract the other DLLs to your php folder an error message will probably popup stating something about missing dlls. So extract the DLLs from the zip folder from before into your PHP folder. Try running php -e -v again and it should work fine with no error message. If that is the case then Restart apache. Now look at phpinfo() and go to the imagick section. It will say ImageMagick version: Mine said ImageMagick 6.8.6-8 which is an older version then they have on their site. The issue is that ImageMagick number of supported formats: will probably say zero.
Go to http://ftp.sunet.se/pub/multimedia/graphics/ImageMagick/binaries/ ANd download the matching version and install (when you install make sure the checkbox of adding to path variable is checked)
Once finish installing Stop apache. Delete the DLLS from the php folder that you put in earlier and start apache again. Check restart apache and it should all work.