yes.
This commit is contained in:
parent
c1eca8f7ca
commit
71e4af5565
1 changed files with 2 additions and 1 deletions
3
main.py
3
main.py
|
@ -42,11 +42,12 @@ def get_track():
|
|||
image_url = track['item']['album']['images'][0]['url']
|
||||
response = requests.get(image_url)
|
||||
image = Image.open(BytesIO(response.content))
|
||||
print(str(image))
|
||||
|
||||
#imageString = requests.get(track['item']['album']['images'][0]['url'])
|
||||
#image = Image.open(f)
|
||||
print('resizing image')
|
||||
image = image.resize((32,32))
|
||||
print(str(image))
|
||||
#return image
|
||||
#image.save("thumbnail.jpg","JPEG")
|
||||
print('set image')
|
||||
|
|
Loading…
Reference in a new issue