Skip to content
代码片段 群组 项目
提交 21063fa3 编辑于 作者: comfyanonymous's avatar comfyanonymous
浏览文件

Lower compress level of png sent on websocket.

上级 983ebc57
No related branches found
No related tags found
无相关合并请求
......@@ -576,7 +576,7 @@ class PromptServer():
bytesIO = BytesIO()
header = struct.pack(">I", type_num)
bytesIO.write(header)
image.save(bytesIO, format=image_type, quality=95, compress_level=4)
image.save(bytesIO, format=image_type, quality=95, compress_level=1)
preview_bytes = bytesIO.getvalue()
await self.send_bytes(BinaryEventTypes.PREVIEW_IMAGE, preview_bytes, sid=sid)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册