Skip to content

Instantly share code, notes, and snippets.

@Allwin12
Last active June 20, 2020 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Allwin12/fa59f1afdbc2917f607849f1a6f48c77 to your computer and use it in GitHub Desktop.
Save Allwin12/fa59f1afdbc2917f607849f1a6f48c77 to your computer and use it in GitHub Desktop.
from PIL import Image
import requests
from io import BytesIO
url = 'https://miro.medium.com/max/1400/1*X40IVMQsIgSjWsGAxJG7Zw.jpeg'
response = requests.get(url)
img = Image.open(BytesIO(response.content))
img.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment