unexpected result when using Image.composite

"Laura & Edward Cannon" <[email protected]>
Newsgroups gmane.comp.python.image
Message-ID <[email protected]>
I am using Image.composite to combine two images and am getting
unexpected results. Partially transparent areas are appearing
discolored. When I preform the same operation in the Gimp, the result
is as expected. A script demonstrating the problem is

import Image

fg = Image.open("a0001.png")
bg = Image.open("bg.png").resize(fg.size, Image.ANTIALIAS)
Image.composite(fg, bg, fg).save("out.png")


I have attached the source files for reference. Any insight into this
problem would be appreciated.
Edward Cannon

_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig
a0001.png (image/png, 91 KB) - not displayed
bg.png (image/png, 207.9 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.