Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Memory issues #396
Wasn't sure whether to open 3 issues for these.
I want to convert 119 700x950px jpg images each 81K large into a gif, so in total 9.5M. But when I try to do that I get
Meaning it fails after the 80th image for some reason.
Looking at the limits I get:
So another problem I have is that for some reason memory is limited to 256MiB, but I have 16GiB in total and 10GiB free:
Also I have a bit more disk space
So I tried setting it higher with an old code snippet I found here
So instead of setting it to 8000 MB like I intended it sets it to 8000 Byte. In my opinion the unit specifier shouldn't be case-sensitive. And even if you want to enforce a case-sensitive CLI, there should be a warning or even error message if the unit specifier could not be recognized!
It works in uppercase:
BUT trying to set it higher than the default 256MiB does not work for some weird reason which is the most pressing bug for me:
See https://www.imagemagick.org/script/architecture.php#tera-pixel. You likely want to use the registry:temporary-path define and point to an area on disk with lots of free space. See https://www.imagemagick.org/script/architecture.php#cache to learn more about how the pixel cache works. See https://www.imagemagick.org/script/security-policy.php to discover how your security policy may override your command-line resource settings.
For anyone who is still facing this problem even after increasing the memory limit, try commenting out the limit tags for policymap. Eg:
For some reason, my ImageMagick came with very low limits:
and it doesn't choke anymore with the new limits when I try to manipulate more than a few dozen scanned pages.
Thank you so much