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

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



On Thu, Sep 29, 2016 at 10:54 AM, shortcipher
<short.jones.cipher@xxxxxxxxx> 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?
>

That's a 520 megabytes bitmap, that should not be too bad? The problem
is probably whatever limitations apply to the allocator your jpeg
library uses.
Maybe memory fragmentation might be an issue? How much memory do you
have spare, when running the program?

cheers!
mar77i