mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
🐛修复ai插件回复的动图不会动的问题 (#1755)
This commit is contained in:
parent
92d3a4fa86
commit
27393b1e93
@ -510,6 +510,9 @@ class BuildImage:
|
|||||||
bytes: bytes
|
bytes: bytes
|
||||||
"""
|
"""
|
||||||
buf = BytesIO()
|
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")
|
self.markImg.save(buf, format="PNG")
|
||||||
return buf.getvalue()
|
return buf.getvalue()
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user