[Image-SIG] MemoryError when i create a big image

Juanmi juanmiguel.sanchezacosta at gmail.com
Mon Mar 3 14:22:58 CET 2008


Hi all,

I need create a big bmp image (b/n) with width 64000 pixels and height:48000
pixels, but when i try it, PIL return a memory error.
This image should have around 350MB so i dont understand the memory error.

Someone can help me? Maybe is Windows?

Code:

import Image
white_img = Image.new ('1', (64000,48000),(1))
white_img.save('white.bmp')

Error:

File "C:\Python25\Lib\site-packages\PIL\Image.py, line 1710, in new
return Image()._new(core.fill(mode,size,color))
MemoryError

PC:

2GB RAM
200GB HD
Pentium 4 3.0 Ghz
SO: Windows XP

greeting and thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/image-sig/attachments/20080303/3eee287a/attachment.htm 


More information about the Image-SIG mailing list