[BangPypers] Convert to Black and White to an image

Narendra Sisodiya narendra at narendrasisodiya.com
Fri Jan 7 17:34:57 CET 2011

Can somebody give an easy way to convert a image into black and white using
a given threshold..

Currently I am doing like this

    for i in range(0,width):
        for j in range(0,height):
            if image.getpixel((i,j)) <= 200:

What is the general mailing list to ask question on python ?

│    Narendra Sisodiya
│    http://narendrasisodiya.com

More information about the BangPypers mailing list