[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Out of memory loading very large image



In the best case, loading the raw data out of a 41141 x 3317 pixel image will use ~409 MB of memory. In practice, it will use a lot more than that for various reasons. For example, creating an image of that size in GIMP will use ~1.5 GB of memory.

How much memory do you have in your system?

Regards,
Peter Finlayson


On 29/09/2016 10:54, shortcipher wrote:
I get "pygame.error Out of memory" on pygame.image.load() of a 55.1 MB JPG
with 41141 x 3317 pixels.
What is the biggest image pygame can load?
Is there any way of allocating more memory so that this image can be loaded?



--
View this message in context: http://pygame-users.25799.x6.nabble.com/Out-of-memory-loading-very-large-image-tp2481.html
Sent from the pygame-users mailing list archive at Nabble.com.