[Image-SIG] PIL Consuming All System Resources

Yury V. Zaytsev yury at shurup.com
Sun May 30 15:36:48 CEST 2010


Hi!

On Sun, 2010-05-30 at 14:59 +0200, Fredrik Lundh wrote:
> The file has mode=RGB size=20400x28079, so you'd need about 2291246400
> bytes to load it all into memory at once, and twice that to do e.g.
> color conversion (which creates a second image memory), so it's a bit
> on the big side, at least for a 32-bit environment.

I was just about to complain how suboptimal PIL is at loading images,
but first tried to load this in eog (which actually did render the image
after consuming an insane amount of 1.8 Gb memory) and then in Gimp that
was no better :-)

I am wondering whether there's a way of performing image
transformations without temporarily decoding the whole image in
memory...
 
-- 
Sincerely yours,
Yury V. Zaytsev



More information about the Image-SIG mailing list