Cache resources exhausted

@, в [Linux, Заметки]

При редактировании gif'ок wagtailimages в лице ImageMagick хочет много памяти. Память выдаётся по адресу /etc/ImageMagick-6/policy.xml.

<policy domain="resource" name="memory" value="1024MiB"/>.

Трейс

Traceback (most recent call last):
  ...
  File "/var/www/blog.project/lib/python3.5/site-packages/wagtail/wagtailimages/templatetags/wagtailimages_tags.py", line 88, in render
    rendition = get_rendition_or_not_found(image, self.filter)
  File "/var/www/blog.project/lib/python3.5/site-packages/wagtail/wagtailimages/shortcuts.py", line 16, in get_rendition_or_not_found
    return image.get_rendition(specs)
  File "/var/www/blog.project/lib/python3.5/site-packages/wagtail/wagtailimages/models.py", line 283, in get_rendition
    generated_image = filter.run(self, BytesIO())
  File "/var/www/blog.project/lib/python3.5/site-packages/wagtail/wagtailimages/models.py", line 437, in run
    return willow.save_as_gif(output)
  File "/var/www/blog.project/lib/python3.5/site-packages/willow/plugins/wand.py", line 79, in save_as_gif
    with self.image.convert('gif') as converted:
  File "/var/www/blog.project/lib/python3.5/site-packages/wand/image.py", line 3031, in convert
    cloned = self.clone()
  File "/var/www/blog.project/lib/python3.5/site-packages/wand/image.py", line 629, in clone
    return Image(image=self)
  File "/var/www/blog.project/lib/python3.5/site-packages/wand/image.py", line 2758, in __init__
    self.raise_exception()
  File "/var/www/blog.project/lib/python3.5/site-packages/wand/resource.py", line 222, in raise_exception
    raise e
wand.exceptions.CacheError: cache resources exhausted `' @ error/cache.c/OpenPixelCache/3945
# editor /etc/ImageMagick-6/policy.xml
<policymap>  
  <policy domain="resource" name="memory" value="1024MiB"/>
</policymap>
night-crawler
Просмотров: 112
blog comments powered by Disqus