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
The size of the image is not really important it is the size in bits that an image takes. Your example file is not a good example because it is not that big but you can use the following calculation for the amount of memory that is necessary to store an image in memory:
width * height * (pixel channels) * (bits per pixel)
252 * 118 * 4 * 16 = 1903104 bits = 0.237888 mb

frames * (bits per frame)
255 * 1903104 = 485291520 bits = 60 mb
You probably have a gif that has a bigger width/height and has a lot of frames that is causing these problems.

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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