Online Image Reader 2

import requests
from PIL import Image
from io import BytesIO
url = 'https://www.cognex.com/BarcodeGenerator/Content/images/isbn.png'
response = requests.get(url)
img = Image.open(BytesIO(response.content))
img

png

type(img)
PIL.PngImagePlugin.PngImageFile
img.size
(300, 150)