There are many answers since the landscape for this program and PHP has changed over time.
I am so cut that I am now using PHP 7.1. At first I copied the DLL all over the place, like all the instructions. Fortunately, all that is needed is the latest PECL package and the corresponding version of Imagick for your system, which was a difficult task. You cannot use the latest Imagick (version 7 at the time of this writing) if you want to use the PHP extension until the extension is updated. You need to install the version of Imagick on your system that matches the version of the PHP extension.
As others have said, download the latest PECL package for imagick for your version of PHP. Since I am using the thread safe version of x64 for PHP 7.1, I want the 3.4.3RC1 package, the only one with DLL for my version of PHP at the moment.
Of these files, I only need to copy php_imagick.dll . Then go to http://windows.php.net/downloads/pecl/deps/ and download the latest version of Imagick for your system, which is likely to be VC14 at the moment, which seems to be simply related to installing the appropriate C package ++ Redistributable on your system for it to work. Just unzip the files and add the recycle bin to your path. Again, if you have a newer version of Imagick, you will want to replace it with this one, because it is the one that will work with the php extension.
At this point you will need to restart apache and confirm that the imagix extension is included in phpinfo. It should show you the version of Imagick for the PHP extension. Again, if Imagick on your system on your way is the version that matches what is shown for the PHP extension, then you should see a list of supported formats that it receives from the DLL from Imagick version 6 on your system. You will not need to copy them to bin-apache or anywhere else, and also do not create the MAGICK_HOME folder.
Spencer Williams Dec 25 '16 at 7:26 2016-12-25 07:26
source share