LoginSignup
1
4

More than 5 years have passed since last update.

python3.5でurlから画像表示する(メモ)

Posted at

環境python3.5.2

まずインストール
pip install pillow

test.py
from PIL import Image
import io
from urllib.request import urlopen

file =io.BytesIO(urllib.request.urlopen('画像のurl').read())
img = Image.open(file)
img.show()
1
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
4