User:Flo/pil: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
 
Line 9: Line 9:
[[File:001dither.png|900px|left]]
[[File:001dither.png|900px|left]]
[[File:002dither.png|400px|right]]
[[File:002dither.png|400px|right]]
[[File:003dither.png|700px|left]]
[[File:003dither.png|600px|left]]
[[File:004dither.png|800px|right]]
[[File:004dither.png|500px|right]]
[[File:005dither.png|700px|left]]
[[File:005dither.png|700px|left]]

Latest revision as of 02:17, 12 April 2021

 
from PIL import Image
from urllib.request import urlopen
f = Image.open("dither.jpg")
a = f.convert("1")
a.save("dither.png")


001dither.png
002dither.png
003dither.png
004dither.png
005dither.png