forked from lux-QAQ/Manyana
图片识别图片压缩优化
This commit is contained in:
parent
ddfa2bb1b0
commit
4e35e591be
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue