Installation of PECL Imagick extension


Well-known member
Hi everybody. :)

The server that hosts my forums runs Windows 2008, and has PHP 5.3.6 installed. I asked my webmaster, a friend of mine, to install the PECL Imagick extension as an image processing library and he successfully installed Image Magick <ImageMagick-6.7.2-9-Q16-windows-x64-dll.exe> from here.

The next step was to install the imagick extension. However, it seems that a compiled .dll is not available for this extension on the PHP site.

Am I looking for imagick in the right place? Any guidance would be appreciated. :)


Well-known member
I sure did. That page actually lists the source files which then need to be 'compiled' into a .dll file for installation under windows. Apparently, the guys at no longer provide Windows builds on their site.
A DLL for this PECL extension is currently unavailable. See also the building on Windows section.
Though, I did find a blog <Mikko’s blog>where he has uploaded the compiled .dll's for several extensions, just in case this helps anyone else:

Thanks for helping though, Ant. I'll update here after attempting the install. :)


Well-known member
isn't this a requirement (what your friend installed) <ImageMagick-6.7.2-9-Q16-windows-x64-dll.exe>

for this extension
Description: ....
Imagick is a native php extension to create and modify images using the ImageMagick API.
This extension requires ImageMagick version 6.2.4+ and PHP 5.1.3+.

IMPORTANT: Version 2.x API is not compatible with earlier versions.
what I am asking is..( I am actually asking here) would you not just have to install the extension into php now?


Well-known member
Yup, only the extension needs to be installed now. But for an installation under Windows, you need a Windows build, in the form of a .dll that is compiled from the source files package which you linked to earlier.


Well-known member
Ok, I finally got it working on my server. Thought I would share some resources I searched around for while doing so, in case it may help someone else. :)

For installation of the PECL Imagick extension, you need to be wary about the compilation versions of 3 things, which are PHP, ImageMagick and Imagick. Since I have a Windows Server 2008 installation, the discussion below is about Windows builds.

Two different compilations of the above 3 are available; those compiled with Visual Studio 6 compiler are called VC6 and those compiled with Visual Studio 2008 compiler are called VC9. It is necessary that you use windows binaries by the same compiler. i.e. if you installed a VC9 PHP version, then the remaining should have been compiled with VC9 as well.

PHP: Later builds are being released as VC9 compilations. Latest versions for both VC6 and VC9 may be found at PHP For Windows.

ImageMagick: This was a bit tricky. According to a blog post I came across, latest versions are being released as VC10 compilations, meaning that we needed a VC9 compilation for this to work. However, there is no indication on their site as to which versions are VC10 compilations and which are VC9. Anyhow, the last compilation which had been found to be a VC9 compilation was 6.6.4-1, as claimed in this nicely written tutorial here.
I could not find an archive of older versions for ImageMagick on their site, but a very detailed list of ImageMagick compilations can be found here:

Imagick: Apparently, these guys do not provide DLL compilations at all at their official site. However,
VC9 builds have been released in this blog post at Mikko's Blog, which can be downloaded at
VC6 builds have been released and can be downloaded from VC6 Windows binaries for imagick 2.3.0.