mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
🐛修复ai插件回复的动图不会动的问题
This commit is contained in:
parent
92d3a4fa86
commit
c7f475f162
@ -510,6 +510,9 @@ class BuildImage:
|
||||
bytes: bytes
|
||||
"""
|
||||
buf = BytesIO()
|
||||
if isinstance(self.markImg.format, str) and self.markImg.format.upper() in ["GIF"]:
|
||||
self.markImg.save(buf, format="GIF", save_all=True, loop=0)
|
||||
return buf.getvalue()
|
||||
self.markImg.save(buf, format="PNG")
|
||||
return buf.getvalue()
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user