embe embe - 7 months ago 44
PHP Question

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

There are other threads about how to install Imagick on Windows 7 but no help for me so far. :(

(Maybe problems have came up with more recent versions)

I have followed these steps to install:

  1. Download and install ImageMagick


  2. Download php_imagick.dll and copy to extension dir (c:\xampp\php\ext)


  3. Edit php.ini file and add new extension (c:\xampp\php\php.ini)


  4. Save ini file and restart Apache (if necessary, restart Windows)

  5. Start Apache and run test

When I start Apache i get a pop up box that displays:

The program can't start because php5.dll is missing from your computer. Try reinstalling the program to fix this problem.

Then directly after this comes another:

PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_imagick.dll' - The specified module could not be found.

According to funtioneer I suspect some kind of compilation error.

Now I have PHP Version 5.5.6 (xampp 1.8.3) with compiler MSVC11 wich is the same as for the php_imagick.dll file.

Is download ImageMagick from source and compile it on my own the right way to go? (have never compiled in Windows before)


Instead of using the latest version I tried downloading ImageMagick-6.7.7-5-Q16-windows-dll from http://ftp.sunet.se/pub/multimedia/graphics/ImageMagick/binaries/. That one actually worked with the php_imagick.dll (Imagick for PHP 5.5.x) from http://www.peewit.fr/imagick/.

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