From 0e7b915deba6b837ace4a0111e4ec4c5898a54cb566227a2884a5b53fa356081 Mon Sep 17 00:00:00 2001 From: vladislav Date: Mon, 17 Aug 2026 14:18:49 -0400 Subject: [PATCH] fix --- main.ipynb | 2 +- main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.ipynb b/main.ipynb index c22bb83..9e0fbf7 100644 --- a/main.ipynb +++ b/main.ipynb @@ -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", diff --git a/main.py b/main.py index 4baa6bc..b5d5e7e 100644 --- a/main.py +++ b/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