From 4e35e591bee1f19556a4f11d26a8427d750759cf Mon Sep 17 00:00:00 2001 From: DEII <1840094972@qq.com> Date: Thu, 25 Jul 2024 08:43:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E8=AF=86=E5=88=AB=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E5=8E=8B=E7=BC=A9=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/googleGemini.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/googleGemini.py b/plugins/googleGemini.py index 2d50c39..f4f47d5 100644 --- a/plugins/googleGemini.py +++ b/plugins/googleGemini.py @@ -68,6 +68,7 @@ async def GeminiDownloadAllImagesAndSetPrompts(imgurls, rev=False): async with httpx.AsyncClient(timeout=20) as client: res = await client.get(i) image = Image.open(io.BytesIO(res.content)) + image = image.convert("RGB") #进行图片压缩 quality = 85 while True: