User:Flo/pil: Difference between revisions
< User:Flo
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
[[File: | [[File:001dither.png|200px|thumb|left|alt text]] |
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
[[File: | [[File:001dither.png|200px|thumb|left|alt text]] |
from PIL import Image
from urllib.request import urlopen
f = Image.open("coin-toss.jpg")
a = f.convert("1")
a.save("coin.png")