Installing ImageMagick on OSX Lion

By | 2014/05/27

The problem I had was:

dyld: Library not loaded: @@HOMEBREW_PREFIX@@/opt/libpng/lib/libpng16.16.dylib
  Referenced from: /usr/local/opt/freetype/lib/libfreetype.6.dylib
  Reason: image not found
[1]    99125 trace trap  convert data/assets/images/heroes/123x87/andromeda.jpg  +append

Informations have been taken from Stackoverflow:

cd /tmp
curl -OL
tar -xzf ImageMagick.tar.gz
cd ImageMagick-6.7.2-7/
./configure --prefix=/usr/local --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --disable-openmp --with-gs-font-dir=/usr/local/share/ghostscript/fonts
sudo make install

On Mavericks

Try like that:

brew install imagemagick --build-from-source