ImagickException – cache resources exhausted

It says i all. Increase the memory limits for Imagick and you should be fine.

However, it does not help to just add more memory in php.ini, instead you have a policy.xml where Imagick has it’s own settings.

If you are in an Linux environment you should find Imagick’s configurations in /etc/ImageMagick-6/

nano /etc/ImageMagick-6/policy.xml

Look for

<policy domain="resource" name="memory" value="1Gib"/>


<policy domain="resource" name="disk" value="2GiB"/>

and try tweaking does for your needs.