merge two png pic

Xavier Ho contact at
Tue Jul 28 21:29:15 EDT 2009

On Wed, Jul 29, 2009 at 11:20 AM, cocobear < at> wrote:

> >>>"RGB",(44544,38656))
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
>  File "/usr/lib/python2.5/site-packages/PIL/", 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: contact at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list