후우… 원래 블로그 날아가기전에… imagick 윈도우 설치방법에 대해서
적어둔적이 있는데..
지금은 아예 날아갔으니, 새로 작성하기로 한다.
imagick php 7.3 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 ext폴더에 넣는다.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);
윈도우용 설치 방법 끝.
정말로 감사합니다
슨상님