From 515ee27ab2346e25c7786252c18425b5de82d915 Mon Sep 17 00:00:00 2001 From: KimgiaiiWuyi <444835641@qq.com> Date: Thu, 2 Jun 2022 00:27:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=A4=9A=E4=BD=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- enkaToData/drawCharCard.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/enkaToData/drawCharCard.py b/enkaToData/drawCharCard.py index 9a14d77a..ec919659 100644 --- a/enkaToData/drawCharCard.py +++ b/enkaToData/drawCharCard.py @@ -292,8 +292,6 @@ async def draw_char_card(raw_data: dict, charUrl: str = None) -> str: img = img.convert('RGB') result_buffer = BytesIO() img.save(result_buffer, format='JPEG', subsampling=0, quality=90) - #img.save(R_PATH / 'result.png', format='JPEG', subsampling=0, quality=90) - img.save(result_buffer, format='PNG') imgmes = 'base64://' + b64encode(result_buffer.getvalue()).decode() resultmes = imgmes return resultmes \ No newline at end of file