Closed peterstory closed 5 years ago
Hello @peterstory,
Take a look at your resource limits for ImageMagick.
identify -list resource
You may want to tweak or just comment out the policy map in the ImageMagick policy.
The file is usually located at /etc/ImageMagick-6/policy.xml
.
:+1:
Thanks @lettier, that fixed my problem!
--- /etc/ImageMagick-6/policy.xml.original 2019-10-24 08:43:39.686368941 -0400
+++ /etc/ImageMagick-6/policy.xml 2019-10-24 08:49:40.087009475 -0400
@@ -50,12 +50,12 @@
-->
<policymap>
<!-- <policy domain="resource" name="temporary-path" value="/tmp"/> -->
- <policy domain="resource" name="memory" value="256MiB"/>
- <policy domain="resource" name="map" value="512MiB"/>
+ <!-- <policy domain="resource" name="memory" value="256MiB"/> -->
+ <!-- <policy domain="resource" name="map" value="512MiB"/> -->
<policy domain="resource" name="width" value="16KP"/>
<policy domain="resource" name="height" value="16KP"/>
- <policy domain="resource" name="area" value="128MB"/>
- <policy domain="resource" name="disk" value="1GiB"/>
+ <!-- <policy domain="resource" name="area" value="128MB"/> -->
+ <!-- <policy domain="resource" name="disk" value="1GiB"/> -->
<!-- <policy domain="resource" name="file" value="768"/> -->
<!-- <policy domain="resource" name="thread" value="4"/> -->
<!-- <policy domain="resource" name="throttle" value="0"/> -->
I just ran into the same issue with the CLI version. Commenting out the following line was sufficient for me:
<policy domain="resource" name="memory" value="256MiB"/>
Hopefully you can help me resolve this "cache resources exhausted" error. Perhaps there is an option I can pass to imagemagick to increase the amount of cache available? Currently, I'm using gifcurry from the GUI, but using the CLI is no problem for me.
Thanks in advance!