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

There seems to be no short tutorials / step-by-step instructions for installing ImageMagick on WAMP for use with PHP.

I have tried dozens of combinations of their binary releases with various php extension dll files. I can make imagemagick work fine from the command line, and I can make it appear as marked in the WAMP extensions, but I really can't use it.

Has anyone come across a good guide to install this software?

I followed http://www.knowledge-transfers.com/it/install-imagemagick-on-windows-setup-imagick-on-php without luck ...




Update: this is what happens when I follow the instructions of the farmer's PHP answer on Windows7. My php.ini is configured 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

+47
php imagemagick wamp
May 31 '10 at 9:14 a.m.
source share
8 answers

I know this is an old post, but I spend my whole day trying to get it to work, so here are the steps that helped me:

  1. Download the ImageMagick binary release - http://www.imagemagick.org/script/download.php
  2. Install in C: \ imagemagick , in the last step check " Add application directory to the system path "
  3. Download the Imagick DLL version : PHP5.6.x from http://www.peewit.fr/imagick/ (version 5. 6+ is installed on my local host)
  4. Copy php_imagick.dll to C: \ wamp \ bin \ php \ ext
  5. Download the PHP 5.6 Thread Safe (TS) x86 version at http://pecl.php.net/package/imagick/3.1.2/windows.
  6. Copy the CORE_RL_ * files to C: \ wamp \ bin \ apache \ bin \
  7. Edit the php.ini file in C: \ wamp \ bin \ apache \ bin \ php.ini , add the line extension = php_imagick.dll in the extensions section
  8. Copy all files from C: \ imagemagick \ modules \ coders and C: \ imagemagick \ modules \ filters to C: \ imagemagick to load the supported ImageMagick formats
  9. Go to Control Panel → System → Advanced Settings → Environment Variables → New System Variable → MAGICK_HOME = C: \ imagemagick
  10. Restart the Wamp server and check phpinfo () for an imagick plugin.
  11. If the last step does not work, restart Windows
+66
Mar 05 '15 at 8:09
source share

I improved fsasvari 's answer to satisfy common scripts and versions. All loans to him.

Install Imagick in WAMP

  1. Open the phpinfo () page
  2. Check below
    PHP version (mine: 5.5.12)
    Compiler (mine: MSVC11 (Visual C ++ 2012))
    Architecture: (mine: x64)
    Stream Security: Enabled
    Uploaded 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 on the phpinfo () page): C: \ wamp \ bin \ apache \ apache2.4.9 \ bin \

  3. Get the latest version that matches your architecture 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 the supported ImageMagick formats

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

  6. Download the PECL appropriate 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 the apache bin folder (mine: C: \ wamp \ bin \ apache \ apache2.4.9 \ bin)

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

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

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

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

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

+22
Oct 26 '15 at 3:04 on
source share

It was a headache for me, but unfortunately I installed it quite a while ago. The instructions from the link you provided look accurate. You launched phpinfo (); check if it is installed in Apache environment? It must be listed as MAGICK_HOME.

Make sure "SetEnv MAGICK_HOME C: / imagemagick" is installed at the end of your httpd.conf file. Suppose imagemagick is installed in this directory.

Make sure you have the php_imagick.dll extension in the php.ini file.

It should work fine if you have all of these settings.

In another note, here is a small small library that someone created to make the imagination easier to use. https://github.com/francodacosta/phmagick

I hope this helps! Good luck

+3
Dec 15 '10 at 23:30
source share

PHP 5.4 php_imagick.dll is located here: http://www.peewit.fr/imagick/ . I read somewhere that 64-bit php does not work with php_imagick. This may be the case when you get this error in apache_error.log

 PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.4.3/ext/php_imagick.dll' - %1 is not a valid Win32 application.\r\n in Unknown on line 0 

As mentioned above, it was necessary to add this to httpd.conf (also I read that you have no spaces / hyphens / periods):

 SetEnv MAGICK_HOME C:/imagemagick" 

If you do not, you may receive this error:

 "PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.4.3/ext/php_imagick.dll' - The specified procedure could not be found. in Unknown on line 0" 

In the end, this article may partially help: http://www.elxsy.com/2009/07/installing-imagemagick-on-windows-and-using-with-php-imagick/

+3
Nov 19 '12 at 7:37
source share

I never used WAMP, but I found that sometimes installing PHP extensions on Windows, I need to make sure that any DLL that the extension applies to is on the Windows PATH system. If in addition to the imagemagick extension there is more than one DLL, try adding the directory where the dll is located in the Windows PATH system, then REBOOT (to ensure that the web server receives a copy of the new environment).

+1
May 31 '10 at 12:55
source share

I know this is an old question, but I think it will someday help someone ...

If you are on WAMPP and you have PHP 5.4.x installed, go here http://www.peewit.fr/imagick/

and download the appropriate files according to the instructions. He will work.

+1
Dec 15 '13 at 21:02
source share

Check out this answer already on StackOverflow:

Install ImageMagick extension using php / windows

I answered this question a while ago. This fixes a DLL mismatch error.

0
Mar 20 '14 at 17:47
source share

For WAMPSERVER 3.1.9 64bit, PHP Version: 7.3.5

I had a lot of problems with this, and some of the things I did wrong were that I doubted ImageMagick would load on my new php version. But you have to believe that this will work, and do not try to use old php versions :)

So this was my approach, remember to follow it with your settings and versions / folders.

Before you start, make sure that you are using the php version you want to run. If you installed Wampserver 3, you can click the wamp icon and go to the php version and activate the one you want to run.




one

Download the latest ImageMagick for your system here: http://ftp.icm.edu.pl/packages/ImageMagick/binaries/

(I got ImageMagick-x86_64-pc-windows.exe at the bottom)




2

Install ImageMagick in C: / imagemagick (I put it in lowercase), you will be prompted for something during installation, just make sure the path is checked.

You should also check the convertible box if it allows.

Then after installation, you can run CMD and type the convert -version command to see if imagick is installed.




3

Run <?php phpinfo();?> <?php phpinfo();?> And find out these settings:

PHP Version: 7.3.5

System: Windows

Compiler: MSVC15 (Visual C ++ 2017) ([VC15])

Architecture: x64 (or maybe you have x86)

Stream Security: Enabled ([TS] Yet [NTS])

You may have other settings, but you should remember yours in order to download the correct php_imagick.dll




four

Get the php_imagick.dll you want for your version of php, here: http://pecl.php.net/package/imagick

I got mine from here: http://pecl.php.net/package/imagick/3.4.4/windows for php 7.3

Remember your information from phpinfo (), it must match, otherwise it will not work.




5

After you unzip it, copy php_imagick.dll and paste it into C: /wamp64/bin/php/php7.3.5/ext/

Then copy all other DLL files from this folder to C: /wamp64/bin/apache/apache2.4.39/bin/

Yes, it's dirty, but you get it like that.




6

Add extension = php_imagick.dll to C: /wamp64/bin/php/php7.3.5/phpForApache.ini

I added it after other extensions in the file.




7

Restart all Wamp services.

If you used to mess with the settings, you might have to restart your computer due to some strange things in the cache.




8

Check phpinfo () again if imagick shows up and try something like $im = new Imagick();




9

Click the icon Wamp → php → extensions, php_imagick should be in the list.




Good luck :)

0
Jul 21 '19 at 17:36
source share



All Articles