How to install ImageMagick to use with PHP on Windows 7 (3)


Instead of using the latest version I tried downloading ImageMagick-6.7.7-5-Q16-windows-dll from here. That one actually worked with the php_imagick.dll (Imagick for PHP 5.5.x) from

This is not the latest version but it worked. (even without restarting the computer)

Here what finally worked for me after trying almost every possible solution posted in internet:


OS: Windows Server 2008 R2 (64bit)

IIS: 7.5

PHP: 5.5.11 (x86)

PHP.ini: VC11, x86

Download and install ImageMagick


Download corresponding .zip from Anatol suggested sources (kudos to Anatol!)


Extract to a temporary folder and copy the contents of the "bin" folder inside the Imagemagick installation (c:\imagemagick) in my case overwriting files.

Download .dll and put it in the php extensions folder (I used this one)

Imagick for PHP 5.5.x Non Thread Safe from:

Add the extension to php.ini with:


Save php.ini and restart IIS

Finally Image Magick information was displayed in a phpinfo(); call.

It is incredible to think to solve this problem needed to download files from 3 different locations.

Hope it helps.


Here is what I did to get it working Note: The step that really tripped me up that didn't really explain is that the php_imagick.dll version should match your install of imagick

Ok so steps I taken was download php imagick dll from (I used

The zip file will contain many dlls keep this in mind, we may need it in future. Extract php_imagick.dll to your extension folder

Put that in extension folder

IN php.ini add extension = php_imagick.dll

Now the issue is we need to find out what version of imagick the php_imagick.dll was compiled for Open command prompt and type in php -e -v The way I did this was with the zip you downloaded earlier, extract the other DLLs to your php folder an error message will probably popup stating something about missing dlls. So extract the DLLs from the zip folder from before into your PHP folder. Try running php -e -v again and it should work fine with no error message. If that is the case then Restart apache. Now look at phpinfo() and go to the imagick section. It will say ImageMagick version: Mine said ImageMagick 6.8.6-8 which is an older version then they have on their site. The issue is that ImageMagick number of supported formats: will probably say zero.

Go here and download the matching version and install (when you install make sure the checkbox of adding to path variable is checked)

Once finish installing Stop apache. Delete the DLLS from the php folder that you put in earlier and start apache again. Check restart apache and it should all work.

The ImageMagic distribution which should be used is from here . The ImageMagic binaries need to be built with the same CRT as the PHP extension is.

Please see installing-imagick-php-7 for installing imagick php extension on Windows using php 7.0 +. It's only real solution I have found so far. It goes into great detail.

UPDATED: 21.08.2017

I got worked ImageMagick with php 7 and IIS (Apache very similar): Imagick Version. 3.4.3

PHP 7 nts x86, Windows Server 2012 x64, IIS 8.5

1) Install VC++ 2015

2) Get ONLY php_imagick.dll from

3) Put it into php/ext/ folder and add extension=php_imagick.dll to php.ini

Attention! Minimum versions supported PHP >= 5.4.0 and ImageMagick >= 6.5.3-10.

ImageMagick 7 are not supported at this time.

Look at phpinfo:

enter image description here

You must install ImageMagick 6.9.3-7 Q16 x86 4) install ImageMagick 6.9.3-7 Q16 x86 dll from Do not uncheck "add variable to path".

5) restart server

thats all

It works by following steps.

php 5.5 32bit ts+apache 2.4+windows 10 64bit+Imagick 6.9.3-5+php_imagick.dll ts

Check what's bit of your system bit.

Choose a php_imagick.dll version from

Find php_imagick.dll from .zip file

If you don't know how to choose.

Type php -v get php version at commandline window

Run following code shows which kind of php you have installed,thread safe or non thread safe.and click here will help you.

On windows:php -i|find "Thread"

On Linux:php -i|grep Thread

or you can run function phpinfo() and search "Thread" on web page.

You will see Thread Safety enabled or Thread Safety disabled

Other steps have already been written out by @embe.

Now for something the documentation does not mention: setting the MAGICK_HOME value in your environment. ImageMagick requires this variable so it knows where to find all relevant coders.

Open up the control pannel, and search for 'PATH'. In the results, select 'Edit the system environment variables'. Select the 'Environment variables...' option, and add a new 'System variable' (the lower list). If you've chosen a different installation path, make sure to replace C:\img with your own path.


Value: C:\img\modules\coders

see more