fix
This commit is contained in:
parent
43828c1486
commit
0e7b915deb
@ -234,7 +234,7 @@
|
||||
" # save to buffer as JPEG\n",
|
||||
" buf = BytesIO()\n",
|
||||
" # img.save(buf, format='JPEG', quality=85)\n",
|
||||
" img.save(buf, format=\"WEBP\", quality=quality, method=6)\n",
|
||||
" img.save(buf, format=\"WEBP\", quality=85, method=6)\n",
|
||||
" buf.seek(0)\n",
|
||||
"\n",
|
||||
" # upload processed avatar to GridFS\n",
|
||||
|
||||
2
main.py
2
main.py
@ -127,7 +127,7 @@ async def logo_user_task(user: dict):
|
||||
# save to buffer as JPEG
|
||||
buf = BytesIO()
|
||||
# img.save(buf, format='JPEG', quality=85)
|
||||
img.save(buf, format="WEBP", quality=quality, method=6)
|
||||
img.save(buf, format="WEBP", quality=85, method=6)
|
||||
buf.seek(0)
|
||||
|
||||
# upload processed avatar to GridFS
|
||||
|
||||
Loading…
Reference in New Issue
Block a user