Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save puiutucutu/e3a5e1d59680d321c1834c94dcba0030 to your computer and use it in GitHub Desktop.
Save puiutucutu/e3a5e1d59680d321c1834c94dcba0030 to your computer and use it in GitHub Desktop.
ImageMagick on php 5.4.9 on IIS 7.5 on Windows Server 2008 R2

ImageMagick on php 5.4.9 on IIS 7.5 on Windows Server 2008 R2

Stack

  • 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)

Notes

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.

Resources

Download Links

php_imagick.dll

ImageMagick-6.8.9-1-Q16-x86-dll.exe

ImageMagick-6.8.9-1-vc9-x86.zip

phpinfo output

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  
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment