How to install Image Magick for MAMP (Pro) on Mountain Lion (10.8.2)

Angie Herrera picture Angie Herrera · Nov 2, 2012 · Viewed 24.3k times · Source

I've been searching for a way to install Image Magick on my Mountain Lion setup (where I use MAMP Pro). I did find this article, but it isn't specific to ML. Also found a couple other similar questions here on SO but they were too specific I think. Doesn't help that I'm not great at this sort of thing. Can anyone point me to a good resource?

Answer

Joel Farris picture Joel Farris · May 27, 2014

As was pointed out in erwinheiser's comment, MAMP 3 now comes with imagemagick pre-installed. I checked MAMP's User Guide (PDF) and found this:

The ImageMagick PHP module is included by default, but you must enable it inside the php.ini template file. Remove the ‘;’ from the following line.

;extension=imagick.so

And how do you find and change the (right) php.ini file for MAMP Pro?

  • From MAMP's menu choose FileEdit TemplatePHP › [the latest version]
    • or use the keyboard shortcut: ⌘4
  • Make the edit. (Imagick was was at line 542 in mine.)
  • Save and close the file.
  • MAMP asks if you want to restart the servers now, choose yes.

And you're done!