[Tutor] PNG pixels

Danny Yoo dyoo@hkn.eecs.berkeley.edu
Thu, 24 Jan 2002 19:25:45 -0800 (PST)


On Thu, 24 Jan 2002, Anton Sherwood wrote:

> I want to take two .png images from the commandline, convert them to
> lists of pixels (lists of lists of tuples if necessary), do stuff with
> them, make a new list of pixels and save it as a .png file.  Is there
> library support to make this easy?

You may be interested in the Python Imaging Library:

    http://www.pythonware.com/products/pil/

I believe that PIL should have support for PNG images, and you should be
able to manipulate your pngs with it.  Good luck!