Not a terribly easy task, but eventually I got ImageMagick to work with MAMP Pro 2.2 with PHP 5.5.3. Here's a few steps.

Brew never worked for me, so I used MacPorts instead.

  • Follow the steps to install MacPorts
  • Install ImageMagick with sudo port install ImageMagick
  • Install IMagick PHP class for ImageMagick sudo port install php53-imagick Install the correct version for your PHP version from this list
  • Copy files so they can be loaded by PHP/Apache
    • /opt/local/lib/php55/extensions/no-debug-non-zts-20121212/imagick.so to /Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-20121212
    • this is specific to php 5.5.3. If you're on another version, the version numbers and the date in the last folder may be different.
  • Update php.ini files located
    • /Applications/MAMP/bin/php/php5.3.x/conf
    • /Library/Application Support/appsolute/MAMP PRO/conf/php.ini
    • MAMP PRO > File > Edit Template > PHP > SELECT YOUR VERSION (this is from the menu inside MAMP Pro.)
    • add extension=imagick.so to these files
  • I had a issue with outdated dlls, and I followed the steps here from King'Ori.
    • Fix library version incompatibilities by open the file /Applications/MAMP/Library/bin/envvars in the editor, and comment out the following lines:
      cDYLD_LIBRARY_PATH="/Applications/MAMP/Library/lib:$DYLD_LIBRARY_PATH" export DYLD_LIBRARY_PATH

Restart your services and you'll be manipulating images like crazy.