MAMP + ImageMagic

MAMP + ImageMagic

My recent project from home requires me to use ImageMagic library for PHP under MAMP. However, MAMP does not ship ImageMagic natively, so I have to use Google’s help to get some answers. After about 2 days of researching, I finally got it working. The following was what I did: MacPorts Firstly I installed MacPort, then install ImageMagic using command:
sudo port install ImageMagick
This will take a while, so please be patient. For me, it took around 20-30 minutes to install all dependencies. Update MAMP envvars Open file /Applications/MAMP/Library/bin/envvars and comment out the first two lines and add the line below:

export PATH="$PATH:/opt/local/bin"
Finally restart MAMP server. PHP Imagick I do have PHP Imagick installed, I am not sure whether it will work without it or not, if it doesn’t work for you, try to install it first. To installed imagick, using pecl command:
pecl install imagick
use “/opt/local” as installation directory on prompt. Then restart MAMP again. It worked for me under OS X 10.6.8 with MAMP 2.0.5 installation, hope this helps.


Leave a Reply

Your email address will not be published. Required fields are marked *

My new Snowflake Blog is now live. I will not be updating this blog anymore but will continue with new contents in the Snowflake world!