Pages for logged out editors learn more
from PIL import Image from urllib.request import urlopen f = Image.open("dither.jpg") a = f.convert("1") a.save("dither.png")