Tuesday, April 15, 2014

How to install ImageMagick with MAMP

1. Install Homebrew http://brew.sh/
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
2. Install ImageMagick for the PHP version your MAMP is running.
brew search imagick
brew install php55-imagick
After installation, the ImageMagick PHP extension is created in /usr/local/Cellar/php55-imagick/3.1.0RC2/imagick.so
3. Disable the DYLD_LIBRARY_PATH variable in Apache's environmental variables.
vi /Applications/MAMP/Library/bin/envvars
Comment out the following line:
4. Update php.ini to include imagick.so
vi /Applications/MAMP/bin/php/php5.5.3/conf/php.ini
Add the following line.
5. Restart MAMP
6. Check if imagick is included in phpinfo()