from PIL import Image col = Image.open("cat-tied-icon.png") gray = col.convert('1') bw.save("result_bw.png")