Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

requests get image from url

import requests
import io
from PIL import Image

response = requests.get("https://i.imgur.com/ExdKOOz.png")
image_bytes = io.BytesIO(response.content)

img = Image.open(image_bytes)
print(f'Size: {img.size}')
img.show()
Source by www.kite.com #
 
PREVIOUS NEXT
Tagged: #requests #image #url
ADD COMMENT
Topic
Name
1+4 =