display image from url in pysimplegui code example
Example: display image from url in pysimplegui
url = "https://upload.wikimedia.org/wikipedia/commons/d/d9/Test.png"
response = requests.get(url, stream=True)
response.raw.decode_content = True
# img = ImageQt.Image.open(response.raw)
# data = image_to_data(img)
img_box = sg.Image(data=response.raw.read())