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