User:Flo/pil: Difference between revisions
< User:Flo
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
from PIL import Image | from PIL import Image | ||
from urllib.request import urlopen | from urllib.request import urlopen | ||
f = Image.open(" | f = Image.open("dither.jpg") | ||
a = f.convert("1") | a = f.convert("1") | ||
a.save(" | a.save("dither.png")</source> | ||
[[File:001dither.png|200px| | [[File:001dither.png|200px|left]] | ||
[[File:002dither.png|200px|left]] | |||
[[File:003dither.png|200px|left]] | |||
[[File:004dither.png|200px|left]] | |||
[[File:005dither.png|200px|left]] |