Laravel - Imagick not installed

Lovelock picture Lovelock · Oct 15, 2014 · Viewed 20.8k times · Source

using Laravel and trying to work on image upload using Imagine.

The issue is that I get the error stating:

Imagine \ Exception \ RuntimeException

Imagick not installed
Open: /Applications/MAMP/htdocs/laravelcms/vendor/imagine/imagine/lib/Imagine/Imagick/Imagine.php

{
/**
* @throws RuntimeException
*/
public function __construct()
{
if (!class_exists('Imagick')) {
throw new RuntimeException('Imagick not installed');
}

I followed this guide, and correctly created all the folders and files etc as stated:

http://creolab.hr/2013/07/image-manipulation-in-laravel-4-with-imagine/

I have also checked the the Imagick folder with all files etc is in the correct location.

Any help?

Thanks, Craig.

Answer

Lovelock picture Lovelock · Oct 16, 2014

After some research, I found that MAMP 3 comes with Imagick pre-installed but not enabled by default.

Simply edit the php.ini file and search for:

;extension=imagick.so

Remove the ';' before it.