Homebrew + Imagemagick + php54-imagick not working
I have resolved my own issue! Since I was using the readImage method from ImageMagick class, it required ghostscript to be installed alongside ImageMagick.

However, when you brew install imagemagick, ghostscript is an optional dependency that is not installed by default.

To resolve my issue, here is what I did (all the steps):


brew install php54-imagick
brew install imagemagick --with-ghostscript


Now I can readImage('test.pdf')!