Re: PIL Convert Alpha-transparent image to non-transparent?

Nils de Reus <[email protected]>
Newsgroups gmane.comp.python.image
Message-ID <57AE160B221E6F4EA096548C7DEE199B6F4F0E28@ivm-mail>
Dear Chander,

I am intrigued, because at least some of the methods you tried should have worked. Could you make one of these images available for testing? I would be interested to have a look at what is happening.

Best regards,
    Nils


________________________________________
Subject: [Image-SIG] PIL Convert Alpha-transparent image to non-transparent?

I've got an image that has alpha transparency, it has a non-white
background color (that is transparent), and several pixels are
"partially" transparent.  If I take the image and convert it over from
RGBA to RGB, the text in the image looks "blocky".

I've tried the following (all to no avail):

- Iterate over the pixels and find those that are more than 50%
transparent and convert them to white
- Use Paste onto a white background that has no transparency, and then
convert to RGB
- Use Image.blend to attempt to blend with a white background (at
various levels)
_______________________________________________
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.