phpStudy安装imagick,适用于phpstudy
匿名 · 更新于 2019/10/26
首先在phpstudy下安装php7.2 VC15 x64 Non Thread Safe zip 解压改名php-7.2.24-nts放到phpstudy 下的php目录下,需退出phpstudy重新启动可以看到对应php7.2版本
https://windows.php.net/download#php-7.2-nts-VC15-x64
然后下载imagick,选择3.4.4对应的7.2 Non Thread Safe (NTS) x64
http://pecl.php.net/package/imagick
-
解压压缩包得到如下一大坨文件
<pre style="margin-top: 0px; margin-bottom: 0px;">$ ls php_imagick-3.4.3-7.2-ts-vc15-x64 ChangeLog CORE_RL_lqr_.pdb CORE_RL_zlib_.pdb CORE_RL_bzlib_.dll CORE_RL_MagickCore_.dll CREDITS CORE_RL_bzlib_.pdb CORE_RL_MagickCore_.pdb LICENSE CORE_RL_glib_.dll CORE_RL_MagickWand_.dll LICENSE.IMAGEMAGICK CORE_RL_glib_.pdb CORE_RL_MagickWand_.pdb php_imagick.dll CORE_RL_lcms_.dll CORE_RL_ttf_.dll php_imagick.pdb CORE_RL_lcms_.pdb CORE_RL_ttf_.pdb CORE_RL_lqr_.dll CORE_RL_zlib_.dll
<p style="line-height: 1.5; margin: 10px auto;">需要做一个操作就是,删除非<strong>dll</strong>文件,因为没啥用</p> </li> <li style="color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; list-style-type: decimal;"> <p style="line-height: 1.5; margin: 10px auto;">复制<code class="codecolorer text default"><span class="text" style="line-height: 1.5;">php_imagick.dll</span></code>到拓展的<code class="codecolorer text default"><span class="text" style="line-height: 1.5;">ext</span></code>目录, 在 php.ini 配置文件中添加,extension=php_imagick.dll,其他的dll并没有什么作用</p> </li> <li style="list-style-type: decimal;"> <p style="color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; line-height: 1.5; margin: 10px auto;">测试执行一下,结果显示如下</p> <pre style="color: rgb(75, 75, 75); font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; margin-top: 0px; margin-bottom: 0px;">$ php --ri imagick
imagick
imagick module => enabled imagick module version => @PACKAGE_VERSION@ imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel Imagick compiled with ImageMagick version => ImageMagick 7.0.7-11 Q16 x64 2017-11-23 http://www.imagemagick.org Imagick using ImageMagick library version => ImageMagick 7.0.7-11 Q16 x64 2017-11-23 http://www.imagemagick.org ImageMagick copyright => Copyright (C) 1999-2015 ImageMagick Studio LLC ImageMagick release date => 2017-11-23 ImageMagick number of supported formats: => 0
Directive => Local Value => Master Value imagick.locale_fix => 0 => 0 imagick.skip_version_check => 0 => 0 imagick.progress_monitor => 0 => 0
<pre style="margin-top: 0px; margin-bottom: 0px;">说明安装成功可以使用了
