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 haveenabledfor thread safe ordisabledfor not thread safe - Determine the architecture
php -i|find "Architecture"
You’ll havex86for 32 bits andx64for 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-….zipthephp_imagick.dllfile, and save it to theextdirectory of your PHP installation - Extract from
ImageMagick-….zipthe DLL files located in thebinfolder that start withCORE_RLorIM_MOD_RL, and save them to the PHP root directory (where you havephp.exe), or to a directory in yourPATHvariable - Add this line to your
php.inifile:
extension=php_imagick.dll - Restart the Apache/NGINX Windows service (if applicable)