merge two png pic

Xavier Ho contact at xavierho.com
Wed Jul 29 03:29:15 CEST 2009


On Wed, Jul 29, 2009 at 11:20 AM, cocobear <cocobear.cn at gmail.com> 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: contact at xavierho.com
Website: http://xavierho.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090729/4519095d/attachment.html>


More information about the Python-list mailing list