Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

step-by-step instructions for installing IMAGEMAGICK on WAMP?

There don't seem to be any concise tutorials/walk throughs for installing ImageMagick on WAMP for use with PHP.

I've tried dozens of combinations of their binary releases with different php extension dll files. I can get imagemagick working fine from the command line, and I can get it to show as ticked in the WAMP extensions, but can't actually use it.

Has anyone come across a good guide for installing this ball ache piece of software?

I've followed http://www.knowledge-transfers.com/it/installing-imagemagick-on-windows-setup-imagick-on-php with no luck...


Update: this is what happens when I follow the steps in PHP farmer's answer on windows7. My php.ini is setup as follows:

extension_dir = "c:/wamp/bin/php/php5.3.0/ext/"  extension=php_imagick.dll 

I reboot and get these two errors in this order

alt textalt text

and here is the dll file where it should be:

alt text

like image 617
Haroldo Avatar asked May 31 '10 09:05

Haroldo


People also ask

How do I install imagick library?

To install it, download Visual C++ Redistributable Package. Congratulations, you have a working ImageMagick distribution under Windows and you are ready to use ImageMagick to convert, compose, or edit your images or perhaps you'll want to use one of the Application Program Interfaces for C, C++, Perl, and others.


2 Answers

I know this is old post but I spend my all day to make it work, so here are the steps that helped me:

  1. Download ImageMagick Binary Release - http://www.imagemagick.org/script/download.php
  2. Install in C:\imagemagick, on last step check "Add application directory to your system path"
  3. Download Imagick DLL: PHP5.6.x version from http://www.peewit.fr/imagick/ (I have 5.6+ version installed on my localhost
  4. Copy php_imagick.dll to C:\wamp\bin\php\ext
  5. Download PHP 5.6 Thread Safe (TS) x86 version from http://pecl.php.net/package/imagick/3.1.2/windows
  6. Copy CORE_RL_* files to C:\wamp\bin\apache\bin\
  7. Edit php.ini file in C:\wamp\bin\apache\bin\php.ini, add extension=php_imagick.dll line in extensions section
  8. Copy all files from C:\imagemagick\modules\coders and C:\imagemagick\modules\filters to C:\imagemagick to load ImageMagick supported formats
  9. Go to Control Panel -> System -> Advanced Settings -> Environment Variables -> New System Variable -> MAGICK_HOME = C:\imagemagick
  10. Restart Wamp server and check phpinfo() for imagick plugin
  11. If last step does not work, restart Windows
like image 68
fsasvari Avatar answered Sep 21 '22 13:09

fsasvari


I have improved fsasvari answer to cater general scenarios and versions. All credits to him.

Install Imagick in WAMP

  1. Open your phpinfo() page
  2. Check the below
    PHP version (mine : 5.5.12)
    Compiler (mine : MSVC11 (Visual C++ 2012) )
    Architecture : (mine : x64)
    Thread Safety : enabled
    Loaded Configuration File (mine : C:\wamp\bin\apache\apache2.4.9\bin\php.ini)
    extension_dir : (mine : c:/wamp/bin/php/php5.5.12/ext/)
    Apache Bin (Not in phpinfo() page) : C:\wamp\bin\apache\apache2.4.9\bin\

  3. Get the latest release match to your architecture from here (for me it was ImageMagick-x86_64-pc-windows.exe).

  4. Copy all files from C:\imagemagick\modules\coders and C:\imagemagick\modules\filters to C:\imagemagick to load ImageMagick supported formats

  5. Install in C:\imagemagick, on last step check "Add application directory to your system path"

  6. Download the PECL matching to your architecture http://pecl.php.net/package/imagick/3.1.2/windows (for me : 5.5 Thread Safe (TS) x64)

  7. Extract it and copy all the CORE_RL_* files to apache bin folder (mine : C:\wamp\bin\apache\apache2.4.9\bin)

  8. Copy php_imagick.* files to extension dir (mine : c:/wamp/bin/php/php5.5.12/ext/)

  9. Edit php.ini file (mine : C:\wamp\bin\apache\apache2.4.9\bin\php.ini)
    add extension=php_imagick.dll line in extensions section

  10. Go to Control Panel -> System -> Advanced Settings -> Environment Variables -> New System Variable -> MAGICK_HOME = C:\imagemagick

  11. Restart Wamp server and check phpinfo() for imagick plugin

  12. If last step does not work, restart Windows (Specially if you have previously installed imagemagick in different folder/version)

like image 45
MudithaE Avatar answered Sep 21 '22 13:09

MudithaE