User:Flo/pil: Difference between revisions
< User:Flo
(Created page with "<code>from PIL import Image from urllib.request import urlopen f = Image.open("coin-toss.jpg") a = f.convert("1") a.save("coin.png")</code>") |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
< | <source lang="python"> | ||
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|900px|left]] | |||
[[File:002dither.png|400px|right]] | |||
[[File:003dither.png|600px|left]] | |||
[[File:004dither.png|500px|right]] | |||
[[File:005dither.png|700px|left]] |