Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: Resizing 5+mb gif files throws MemoryAllocationException

$
0
0
I think I know what is going on. This is some kind of corner case. Each image will take around 96mb (my previous calculation was incorrect 118 should be 188). When the image is written it takes twice that amount of memory to reduce the number of colors to 256 to fit in a gif color palette. Your example is for 10 images and this is really close to 2Gb which is the memory limit for a 32 bit process. The part that reduces the colors will not swap to disk when the memory limit is reached. Switching to x64 will probably solve your issue. Or you should limit the number of threads.

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>