Install Imagick for php on Windows

Requirements: PHP is installed and the install location was added to the system PATH environment variable.

You can use the current snapshot for testing with PHP 7.2: http://windows.php.net/downloads/pecl/snaps/imagick/3.4.3/

This Guide will show as simple as possible how to install imagik 3.4.3 for PHP 7.1 (Thread Safe, x86).

  1. Download imagick for your PHP version from http://pecl.php.net/package/imagick/3.4.3/windows (you can get a nice overview with xdebug under https://xdebug.org/wizard.php)
    I downloaded http://windows.php.net/downloads/pecl/releases/imagick/3.4.3/php_imagick-3.4.3-7.1-ts-vc14-x86.zip.
    All versions: http://pecl.php.net/package/imagick
  2. Unzip php_imagick-3.4.3-7.1-ts-vc14-x86.zip and copy the files as follows:
    php_imagick.dll to your ext dir (I copied to C:\php\ext)
    All files starting with CORE_  to any desired directory (I used C:\imagick)
  3. Add path to your system PATH variable after path to PHP directory:
  4. Add extension=php_imagick.dll to php.ini
  5. Check installation by running php -i in cmd to find the following section:
    imagick module => enabled
  6. If necessary, restart php fpm processs.

Sources: https://herbmiller.me/2016/06/16/installing-imagick-php-7/ and https://php.net/manual/en/imagick.setup.php

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top