删除多余

This commit is contained in:
KimgiaiiWuyi 2022-06-02 00:27:14 +08:00
parent df317e5183
commit 515ee27ab2

View File

@ -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