1. Download ImageMagick: I personally chose the version ImageMagick-6.9.2-0-Q16-x64-dll.exe
Address http://imagemagick.org/script/binary-releases.php#windows
2. Installation ImageMagick
Installation directory C:imagemagick
Need to select "Add tosystem path"
3. Test whether the installation is successful
Open the command line (run->"CMD"->Enter), Enter "convert" and press Enter to view the convert command options
convert -version to find out the installed version information
If it prompts "convert is not an internal or external command, it may also be the previous step "Add to system" path" is not selected, you can add the path to the system environment variable by yourself
If you only want to execute the convert command through exec(), the following steps can be omitted;
If you need to call the API (API address: http://php. net/manual/en/book.imagick.php), continue below
4. Download Imagick Version imagick 3.3.0RC1
Address http://pecl.php.net/package/imagick
5. Unzip Imagick
1) Copy php_imagick.dll to the php extension folder, such as: D:phpext
2) Modify php.ini and add extension=php_imagick.dll
3) Copy CORE_RL_*.dll in the unzipped file Go to C:WindowsSystem32
Otherwise it may appear
4) Add environment variable:
MAGICK_HOME C:ImageMagickmodulescoders
Otherwise it may appear ImageMagick number of supported formats is 0
6 . Restart the computer and check the phpinfo() information, as shown below! ! But you still have to do the image processing. If the supported formats are missing, you can try another Imagick package.