mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-29 09:23:11 +03:00
Merge pull request #7674 from nulano/url-example
This commit is contained in:
commit
40a3f91af2
|
@ -542,7 +542,7 @@ Reading from URL
|
||||||
|
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
from urllib.request import urlopen
|
from urllib.request import urlopen
|
||||||
url = "https://python-pillow.org/images/pillow-logo.png"
|
url = "https://python-pillow.org/assets/images/pillow-logo.png"
|
||||||
img = Image.open(urlopen(url))
|
img = Image.open(urlopen(url))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user