forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-07-30 13:15:44 +02:00
parent 639f17694f
commit 21d0cc2de7
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ def upload_file(file=None, resize=False):
om.save("image.gif", save_all=True, append_images=list(frames))
try:
with open('D:/out.gif', 'rb') as f:
with open('image.gif', 'rb') as f:
data={'image': base64.b64encode(f.read())}
req = requests.post('https://api.imgur.com/3/upload.json', headers = {"Authorization": f"Client-ID {{imgurkey}}"}, data=data)
resp = req.json()['data']