Laravel - Imagick not installed

using Laravel and trying to work with loading images using Imagine.

The problem is that I get the error message:

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 folders and files, etc., as indicated:

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

I also checked that the Imagick folder with all the files, etc. is in the right place.

Any help?

Thanks Craig.

+4
source share
4 answers

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

Just edit the php.ini file and do a search:

;extension=imagick.so

';' .

+6

, Imagick. MAMP , . , MAMP .

0

If you really installed it and it still doesn't work, restarting the web server should do the trick. Greetings.

0
source

Also for everyone else: do not forget that you artisanwill probably use a separate php.ini, so you will also need to enable it extension=imagick.so.

0
source

All Articles