Re: [Image-SIG] PNG transparency not recognized

2008-08-13 Thread Sebastian Spaeth
Fredrik Lundh wrote: PIL doesn't support images using a "transparency color index", but many file codecs does at least add the color to the info dictionary, usually under the "transparency" key. Thanks for the quick reply, this clarifies and helps a lot. Using the transparency key is fine and

Re: [Image-SIG] Image to Matrix to Image.

2008-08-13 Thread Fredrik Lundh
Talat Fakhri wrote: Thanks. This is what I was looking for. So , after changing the pixel [0,0], how do we save the modified image? the same way as you'd save any PIL image: http://effbot.org/tag/PIL.Image.Image.save you have read the tutorial, right? http://effbot.org/imagingbook/intro

Re: [Image-SIG] Image to Matrix to Image.

2008-08-13 Thread Talat Fakhri
Thanks. This is what I was looking for. So , after changing the pixel [0,0], how do we save the modified image? On Tue, Aug 12, 2008 at 3:03 AM, Fredrik Lundh <[EMAIL PROTECTED]>wrote: > Talat Fakhri wrote: > > I am a newbie here. I would like to know if there is any function which >> converts I

Re: [Image-SIG] PNG transparency not recognized

2008-08-13 Thread Fredrik Lundh
Sebastian Spaeth wrote: extensive googling didn't help, so here I go. I produce PNG files with lot's of transparency. These are run through various PNG optimizers (pngnq, pngcrush). When I try to open them, they are im.mode='RGB', ie all the transparency is gone. This is the same in PIL 1.1.5

[Image-SIG] PNG transparency not recognized

2008-08-13 Thread Sebastian Spaeth
Hi all, extensive googling didn't help, so here I go. I produce PNG files with lot's of transparency. These are run through various PNG optimizers (pngnq, pngcrush). When I try to open them, they are im.mode='RGB', ie all the transparency is gone. This is the same in PIL 1.1.5 and 1.1.6. Exampl