Re: [Image-SIG] Help with PIL, Imagemagick Composite function in PIL?

2007-04-10 Thread Alexey Borzenkov
On 4/11/07, Douglas Bagnall <[EMAIL PROTECTED]> wrote: > Alexey, I think you are completely right about the problem, but the > solution can be quite a bit simpler: > > dtop = Image.open("dtop.png") > frame = Image.open("frame.png") > > dtop.paste(frame.convert('RGB'), (0,0), frame) > dtop.save("te

Re: [Image-SIG] Help with PIL, Imagemagick Composite function in PIL?

2007-04-10 Thread César Pérez
Thanks to both of you and yes I was expecting the paste function to work just like a paste in any Image Editor. César On Wed, 2007-04-11 at 11:48 +1200, Douglas Bagnall wrote: > Alexey Borzenkov wrote: > > > The problem you have happens because alpha channel of images *also* > > gets composited

Re: [Image-SIG] Help with PIL, Imagemagick Composite function in PIL?

2007-04-10 Thread Douglas Bagnall
Alexey Borzenkov wrote: > The problem you have happens because alpha channel of images *also* > gets composited using the mask you specified. To do it right you > actually need to split image, save target image alpha channel and > after compositing merge it back using original alpha channel: Alex

Re: [Image-SIG] Help with PIL, Imagemagick Composite function in PIL?

2007-04-10 Thread Alexey Borzenkov
On 4/10/07, César Pérez <[EMAIL PROTECTED]> wrote: > Hi, > I am new to this list but and i have a small problem with PIL. > > I am looking for a function that works like composite does in > imagemagick. [..snip..] > from PIL import Image > > dtop = Image.open("dtop.png") > frame = Image.open("fra

[Image-SIG] Help with PIL, Imagemagick Composite function in PIL?

2007-04-09 Thread César Pérez
Hi, I am new to this list but and i have a small problem with PIL. I am looking for a function that works like composite does in imagemagick. If you don't know, composite puts the first image above the second one and it's like pasting. I have tried PIL paste but I can't get it to work as I want,