在 Windows 上安装 IMAGICK
唉……在原来的博客消失之前……关于 imagick 在 Windows 上的安装方法 我曾经记下来过…… 现在博客彻底不见了,所以决定重新写一遍。 在 Windows 上安装 imagick PHP 7.3 https://mlocati.github.io/articles/php-windows-imagick.h
GGAMI
目录
唉……在原来的博客消失之前……关于 imagick 在 Windows 上的安装方法 我曾经记下来过…… 现在博客彻底不见了,所以决定重新写一遍。 在 Windows 上安装 imagick PHP 7.3 https://mlocati.github.io/articles/php-windows-imagick.h
目录
唉……在原来的博客消失之前……关于 imagick 在 Windows 上的安装方法
我曾经记下来过……
现在博客彻底不见了,所以决定重新写一遍。
https://mlocati.github.io/articles/php-windows-imagick.html
php_imagick-3.4.3-7.3-ts-vc15-x64.zip
ImageMagick-7.0.7-11-vc15-x64.zip
下载这两个文件。
php_imagick-3.4.3-7.3-ts-vc15-x64 文件夹中的 php_imagick.dll 文件要放入 C:\xampp\php\ext 这个 PHP 扩展文件夹中。C:\xampp\php\php.ini 打开后,extension=php_imagick.dll 即可添加。ImageMagick-7.0.7-11-vc15-x64\bin 目录中的所有文件都放到 php.exe 所在的文件夹中。(C:\xampp\php)php -m 用来检查模块。[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
imagick <- 요기에 추가되어 있다.
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
readline
Reflection
session
SimpleXML
SPL
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
zip
zlib
[Zend Modules]那么,现在应该就能正常运行了。
// include composer autoload
require 'vendor/autoload.php';
// import the Intervention Image Manager Class
use Intervention\Image\ImageManagerStatic as Image;
// configure with favored image driver (gd by default)
Image::configure(array('driver' => 'imagick'));
// and you are ready to go ...
$image = Image::make('public/foo.jpg')->resize(300, 200);Windows 版安装方法到此结束。