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

藏色散人
Release: 2023-04-08 12:02:02
forward
2336 people have browsed it

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 isphp_imagick-3.4.3-5.6-nts-vc11- x86.zip

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

Writeextension=php_imagick.dll in php.ini

Restart apache, check phpinfo, imagick already exists, but

ImageMagick number of supported formats:0
Copy after login

Solution:

Add the php home directory to the environment variable,

Opencmd, and enter the commandphp --ri imagickto view Is it normal?

Copy all the files in C:\ImageMagick-6.8.6-Q16\modules\codersto 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!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!