[Image-SIG] Transparent paste - another problem

Szymon Kosok szymon at mwg.pl
Wed Oct 8 16:29:30 CEST 2008


I have another problem with PIL and transparent images. I have such code:

        foo = Image.open("bar.png")

        for p in w:

            baz = Image.open(p.element.binary.path)

            foo.paste(baz, (p.x, p.y), baz)

And the problem is... every baz (some of them are semi-transparent) is
transparent over every previous element.

Maybe I'll show what I want, and what I got:

http://i36.tinypic.com/2efjlaw.png - this is what I want,
http://i38.tinypic.com/11glf6t.png - and this what I get.

Any hints?

Best regards,

More information about the Image-SIG mailing list