[Image-SIG] IndexError
Etienne Robillard
granted14 at yahoo.com
Mon Jun 19 21:54:29 CEST 2006
Hi all,
I'm trying to compose a image with transparency in
mode RGBA. But first I changed some pixels values by
retrieving the palette with getpalette().
Things were doing ok until I decoupled a function
similar to getcolor() that inherits somewhat from
ImagePalette...
Now I get a 'IndexError: tuple index out of range'
error whenever I'm trying to mix-up palette entries
and filtering a (converted) RGBA single-color band. :/
Is their something I missed about using ImagePalette
instances with Image.putpalette() ?
Thanks,
Etienne
PS, This is PIL version 1.1.5
--
Etienne Robillard <erob at cpan.org>
JID: incidah AT njs.netlab.cz
YMS/MSN: granted14 AT yahoo.com
TEL: +1 514.962.7703
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_canvas.py
Type: application/octet-stream
Size: 2592 bytes
Desc: 2235893009-test_canvas.py
Url : http://mail.python.org/pipermail/image-sig/attachments/20060619/aea735e8/attachment.obj
More information about the Image-SIG
mailing list