Re: Paste with alpha not working correctly

Stani <[email protected]>
Newsgroups gmane.comp.python.image
Message-ID <[email protected]>
On Sun, Aug 29, 2010 at 9:21 PM, Helge <[email protected]> wrote:
> Hello Jerome,
>
> Jerome Leclanche schrieb:
>>
>> I believe I've run into that issue before when creating composited
>> images. I fixed it with the following hack in libImaging/Paste.c:135 @
>> paste_mask_RGBA
>> Replaced the for loop with the following:
>
> Glad to read that there is a solution.
> Sadly I have no possibility to compile the C part. Is there a workaround in
> python only? (Slowness is no problem.)
You might try this paste function which I developed for Phatch:
http://bazaar.launchpad.net/~stani/phatch/trunk/annotate/head%3A/phatch/lib/imtools.py#L679

Best regards,
Stani

-- 
Phatch Photo Batch Processor - http://photobatch.stani.be
SPE Python IDE - http://pythonide.stani.be
_______________________________________________
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.