Home  >  Article  >  Backend Development  >  Detailed explanation of how to install Imagick library in Windows php5.6

Detailed explanation of how to install Imagick library in Windows php5.6

藏色散人
藏色散人forward
2020-02-01 15:34:562424browse

Detailed explanation of how to install Imagick library in Windows php5.6

There are many installation pitfalls on Windows

1. To install Imagick, you need to download a version below 6.9.3

http://imagemagick.org/script/download.php

The official website is a new version and cannot be used

The one I installed successfully isImageMagick- 6.8.6-9-Q16-x86-dll.exeSpecial note: The installation path cannot have spaces.

After the installation is completed, enter cmd and enter the command convert, and the imagick section will appear. content, indicating that the installation was successful.

2. Install the Imagick-php extension

Download address:

http://pecl.php.net/package/imagick

Download the corresponding version according to the phpinfo content

Detailed explanation of how to install Imagick library in Windows php5.6

The version I installed is php_imagick-3.4.3-5.6-nts-vc11- x86.zip

After decompression, put php_imagick.dll into the ext directory, and put the DLLs starting with CORE into the PHP main directory.

Write extension=php_imagick.dll in php.ini

Restart apache, check phpinfo, imagick already exists, but

ImageMagick number of supported formats:0

Solution:

Add the php home directory to the environment variable,

Open cmd, and enter the command php --ri imagick to view Is it normal?

Copy all the files in C:\ImageMagick-6.8.6-Q16\modules\coders to the php home directory. //Restart apache according to your installation directory

, the success is as shown below

Detailed explanation of how to install Imagick library in Windows php5.6

##For more PHP related knowledge, please visit

php tutorial!

The above is the detailed content of Detailed explanation of how to install Imagick library in Windows php5.6. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:cnblogs.com. If there is any infringement, please contact admin@php.cn delete