Tektriks

Coding starts here
Home / Blog

A step by step guide on how to install ImageMagick in Windows

ImageMagick is powerful, free and open source software suite which contributed to create, edit, convert images throughout the years. It supports creating various type of image formats. The library is available on different versions of operating systems like windows, linux, mac etc. It is easy to install on Unix OS from command prompt but creates much more headache on Windows. Today, I am giving step by step instructions on how to install ImageMagick in Windows. This steps will work both on Xampp and Wamp servers.

  1. Download ImageMagick .dll files from https://pecl.php.net/package/imagick. . You must download appropriate version getting help from your phpinfo() status by searching on “Architecture” and “PHP Extension Build”.
  2. Extract and copy all files to php extension directory. For example, C:\xampp\php\ext (for Xampp).
  3. Also copy all the CORE_RL_* files to apache bin folder. For example, C:\xampp\apache\bin.
  4. Edit php.ini file and add extension=php_imagick.dll line in extensions section.
  5. Next install ImageMagick binary release version for Windows from http://www.imagemagick.org/script/download.php#windows. Customize the installation path to C:\ImageMagick.
  6. Copy all files from C:\ImageMagick\modules\coders and C:\ImageMagick\modules\filters to C:\ImageMagick to load ImageMagick supported formats.
  7. Next, go to Control Panel -> System -> Advanced Settings -> Environment Variables -> Set New System Variable -> MAGICK_HOME = C:\ImageMagick.
  8. Now start/restart the Xampp/Wamp server and check phpinfo(). Your library should be displayed like above. If nothing shows, check C:\ImageMagick is available to the path variable under Apache Environment. If not, restart your windows machine.
  9. If you notice that ImageMagick variable ImageMagick number of supported formats is 0, then you have to reinstall exact version of ImageMagick which you can get from Imagick using ImageMagick library version variable. You can grab the version from ftp://ftp.imagemagick.org/pub/ImageMagick/releases/ or older version from http://windows.php.net/downloads/pecl/deps/ before checking “Imagick compiled with ImageMagick version” or “Imagick using ImageMagick library version” in your phpinfo() file.
  10. First uninstall the previous version of ImageMagick and download your required version. Extract it on the same location C:\ImageMagick. Now you have to modify the Environmental variable to MAGICK_HOME = C:\ImageMagick\bin. Next restart windows and check phpinfo() again.

 

Hope you have installed ImageMagick following the steps given above. Comments are welcome to all.

 

Subscribe
Notify of
guest
13 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
vineet shirdhonkar
vineet shirdhonkar
2 years ago

thanks a lot . It helps to me properly install in one time

Tom
Tom
3 years ago

Awesome!!! Thanks a lot!!:)

Daniel
Daniel
3 years ago

Big Thank you man ! I waste hours before !

Basil
Basil
4 years ago

Thanks dude! it did work.

Juan Torrez
Juan Torrez
4 years ago

Thanks a lot!..

Bob
4 years ago

Thanks a lot! Great description!

Emmanuel Higgins
5 years ago

It works! Only solution I found that worked for me. Thank you.

Stark
Stark
5 years ago

ImageMagick number of supported formats: 0
ImageMagick supported formats : No value

john
john
Reply to  Biswajit
5 years ago

same result

mahabub
mahabub
Reply to  Stark
4 years ago

same result what to do next and now

Stark
Stark
5 years ago

Not working

Fco
Fco
5 years ago

Thanks a lot! You saved my day. This is the only solution published on the web that worked out for me.

13
0
Would love your thoughts, please comment.x
()
x