User:Flo/pil: Difference between revisions
< User:Flo
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
a = f.convert("1") | a = f.convert("1") | ||
a.save("coin.png")</source> | a.save("coin.png")</source> | ||
[[File:coin.png|link=https://hub.xpub.nl/sandbot/~floorvanmeeuwen/13/working-with-images/|caption]] |
Revision as of 02:09, 12 April 2021
from PIL import Image
from urllib.request import urlopen
f = Image.open("coin-toss.jpg")
a = f.convert("1")
a.save("coin.png")