- Windows Server 2008 R2 Standard Edition
- Windows NT 6.1 (Build 7601: Service Pack 1)
- Internet Information Services (IIS) (Version 7.5.7600.16385)
- php 5.4.9
- x86
- non-thread safe
- compiled with vc9 (visual c++ 2008)
The key was to ensure that everything was compiled using the VC9 C++ runtime library (Visual C++ 2008 Redistributable Package (x86)).
For the dependencies package for PHP to load/use ImageMagick, the last build using VC9 was ImageMagick-6.8.9-1-vc9-x86.zip
that can only be found in the php archives (linked below).
The second important step is ensuring that the PATH
environment variable includes your ImageMagick installation path - in this case, it was C:\Program Files (x86)\ImageMagick-6.8.9-1
.
- https://stackoverflow.com/questions/55967226/how-to-install-imagemagick-php-extension-for-use-on-iis-server-on-windows-server?noredirect=1&lq=1
- https://stackoverflow.com/questions/20976779/how-to-install-imagemagick-to-use-with-php-on-windows-7-3/20979349
php_imagick.dll
- this is the last
.dll
file that was ever compiled for php 5.4.9 - https://pecl.php.net/package/imagick/3.4.1/windows
- download 5.4 Non Thread Safe (NTS) x86
ImageMagick-6.8.9-1-Q16-x86-dll.exe
- https://ftp.icm.edu.pl/packages/ImageMagick/binaries/
- https://ftp.icm.edu.pl/packages/ImageMagick/binaries/ImageMagick-6.8.9-1-Q16-x86-dll.exe
ImageMagick-6.8.9-1-vc9-x86.zip
- https://windows.php.net/downloads/pecl/deps/archives/
- https://windows.php.net/downloads/pecl/deps/archives/ImageMagick-6.8.9-1-vc9-x86.zip
imagick
imagick module enabled
imagick module version 3.4.1
imagick classes Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel
Imagick compiled with ImageMagick version ImageMagick 6.8.9-1 Q16 x86 2014-05-08 http://www.imagemagick.org
Imagick using ImageMagick library version ImageMagick 6.8.9-1 Q16 x86 2014-05-08 http://www.imagemagick.org
ImageMagick copyright Copyright (C) 1999-2014 ImageMagick Studio LLC
ImageMagick release date 2014-05-08
ImageMagick number of supported formats: 229
ImageMagick supported formats 3FR, A, AAI, AI, ART, ARW, AVI, AVS, B, BGR, BGRA, BIE, BMP, BMP2, BMP3, BRF, C, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CLIPBOARD, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DFONT, DJVU, DNG, DOT, DPS, DPX, DXT1, DXT5, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FITS, FPX, FRACTAL, FTS, G, G3, GIF, GIF87, GRADIENT, GRAY, GROUP4, GV, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, ICB, ICO, ICON, INFO, INLINE, IPL, ISOBRL, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPEG, JPG, JPT, JSON, K, K25, KDC, LABEL, M, M2V, M4V, MAC, MAP, MASK, MAT, MATTE, MEF, MIFF, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, O, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, R, RADIAL-GRADIENT, RAF, RAS, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCREENSHOT, SCT, SFW, SGI, SHTML, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBP, WMF, WMV, WPG, X3F, XBM, XC, XCF, XPM, XPS, XV, Y, YCbCr, YCbCrA, YUV