Last active
January 12, 2020 17:20
-
-
Save thunderInfy/a710387ea56e93c5459c3ea55c2c3524 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def download(url,fname): | |
| response = requests.get(url) | |
| with open(fname,"wb") as f: | |
| f.write(response.content) | |
| # Downloading the image | |
| download("https://specials-images.forbesimg.com/imageserve/5db4c7b464b49a0007e9dfac/960x0.jpg?fit=scale","input.jpg") | |
| # Opening the image | |
| img = Image.open('input.jpg') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment