Re: unexpected result when using Image.composite

"Laura & Edward Cannon" <[email protected]>
Newsgroups gmane.comp.python.image
Message-ID <[email protected]>
I have discovered the source of the problem. the bg image is mode
RGBA, when I convert it to RGB, the result is as expected.

On Thu, Oct 15, 2009 at 9:55 PM, Laura & Edward Cannon
<[email protected]> wrote:
> 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
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.