User:Flo/pil: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 7: Line 7:




[[File:coin.png|link=https://hub.xpub.nl/sandbot/~floorvanmeeuwen/13/working-with-images/|caption]]
[[File:001dither.png|200px|thumb|left|alt text]]

Revision as of 02:15, 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")


alt text