On Wed, Jul 29, 2009 at 11:20 AM, cocobear <[email protected]> wrote:
>
> >>> Image.new("RGB",(44544,38656))
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/usr/lib/python2.5/site-packages/PIL/Image.py", line 1710, in
> new
> return Image()._new(core.fill(mode, size, color))
> MemoryError
a 44544x38656 pixel PNG file? I don't mean to be nosy, but what is this for,
if you could share?
> How can I directly merge two pic to a ‘P' mode png with palette.
Save to disk incrementally is one way I can think of. It's a lot slower, but
definitely more space than your RAM.
Good luck,
Ching-Yun "Xavier" Ho, Technical Artist
Contact Information
Mobile: (+61) 04 3335 4748
Skype ID: SpaXe85
Email: [email protected]
Website: http://xavierho.com/
--
http://mail.python.org/mailman/listinfo/python-list