In order to install the imagick PHP extension on Windows, you need to know the exact version of your PHP. To do this: open a command prompt and enter these commands:
- Determine the PHP version:
php -i|find "PHP Version"
- Determine the thread safety
php -i|find "Thread Safety"
You’ll haveenabled
for thread safe ordisabled
for not thread safe - Determine the architecture
php -i|find "Architecture"
You’ll havex86
for 32 bits andx64
for 64 bits
Go to https://mlocati.github.io/articles/php-windows-imagick.html in order to download the requried files.
Once you downloaded the correct files:
- Extract from
php_imagick-….zip
thephp_imagick.dll
file, and save it to theext
directory of your PHP installation - Extract from
ImageMagick-….zip
the DLL files located in thebin
folder that start withCORE_RL
orIM_MOD_RL
, and save them to the PHP root directory (where you havephp.exe
), or to a directory in yourPATH
variable - Add this line to your
php.ini
file:
extension=php_imagick.dll
- Restart the Apache/NGINX Windows service (if applicable)