Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache resources exhausted error with Imagemagick #147

Closed
satyamtg opened this issue Jun 8, 2020 · 0 comments · Fixed by #148
Closed

Cache resources exhausted error with Imagemagick #147

satyamtg opened this issue Jun 8, 2020 · 0 comments · Fixed by #148
Labels

Comments

@satyamtg
Copy link
Contributor

satyamtg commented Jun 8, 2020

When trying to convert/resize large images, mogrify throws the following

mogrify-im6.q16: cache resources exhausted `BES4j.jpg' @ error/cache.c/OpenPixelCache/4083.

A sample image to test it is attached here
BES4j
For this particular image, default memory it requires almost 600MiB memory with mogrify (the default being 256 MiB), I tested it by gradually increasing the memory limit of ImageMagick

A related issue on Imagemagick seems to be this

I think a better solution would be to remove dependency on mogrify for resizing and format conventions. Instead, we can use Pillow.

Although I'm not sure at this point, this may be the culprit for #145

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant