<br>
On Wed, Jul 29, 2009 at 11:20 AM, cocobear <span dir="ltr"><<a href="http://cocobear.cn">cocobear.cn</a>@<a href="http://gmail.com">gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br>
>>> Image.new("RGB",(44544,38656))<br>
Traceback (most recent call last):<br>
  File "<stdin>", line 1, in <module><br>
  File "/usr/lib/python2.5/site-packages/PIL/Image.py", line 1710, in<br>
new<br>
    return Image()._new(core.fill(mode, size, color))<br>
MemoryError</blockquote><div><br>a 44544x38656 pixel PNG file? I don't mean to be nosy, but what is this for, if you could share? <br></div><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

How can I directly merge two pic to a ‘P' mode png with palette.</blockquote><div><br>Save to disk incrementally is one way I can think of. It's a lot slower, but definitely more space than your RAM.<br></div></div>
<br>Good luck,<br><br clear="all">Ching-Yun "Xavier" Ho, Technical Artist<br><br>Contact Information<br>Mobile: (+61) 04 3335 4748<br>Skype ID: SpaXe85<br>Email: <a href="mailto:contact@xavierho.com">contact@xavierho.com</a><br>
Website: <a href="http://xavierho.com/">http://xavierho.com/</a><br>