forked from rDrama/rDrama
master
parent
5b0c0e0b21
commit
bf44fe9fd6
|
@ -505,8 +505,16 @@ def settings_images_profile(v):
|
||||||
filepath = f"image.{format}"
|
filepath = f"image.{format}"
|
||||||
file.save(filepath)
|
file.save(filepath)
|
||||||
|
|
||||||
if 'pcmemes.ga' in request.host: highres = upload_ibb()
|
if 'pcmemes.ga' in request.host:
|
||||||
else: highres = upload_imgur(filepath=filepath)
|
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 not highres: abort(400)
|
||||||
|
|
||||||
if 'pcmemes.ga' in request.host: imageurl = upload_ibb(resize=True)
|
if 'pcmemes.ga' in request.host: imageurl = upload_ibb(resize=True)
|
||||||
|
|
Loading…
Reference in New Issue