remotes/1693045480750635534/spooky-22
Aevann1 2021-09-13 18:43:24 +02:00
parent 5b0c0e0b21
commit bf44fe9fd6
1 changed files with 10 additions and 2 deletions

View File

@ -505,8 +505,16 @@ def settings_images_profile(v):
filepath = f"image.{format}"
file.save(filepath)
if 'pcmemes.ga' in request.host: highres = upload_ibb()
else: highres = upload_imgur(filepath=filepath)
if 'pcmemes.ga' in request.host:
file = request.files["profile"]
file.save("image.webp")
highres = upload_ibb()
else:
file = request.files["profile"]
format = file.filename.split('.')[-1].lower().replace('jpg','png').replace('jpeg','png')
filepath = f"image.{format}"
file.save(filepath)
highres = upload_imgur(filepath=filepath)
if not highres: abort(400)
if 'pcmemes.ga' in request.host: imageurl = upload_ibb(resize=True)