update image_utils

This commit is contained in:
HibiKier 2022-06-18 15:23:36 +08:00
parent 903b5b88a7
commit 68052b526f
2 changed files with 2 additions and 1 deletions

View File

@ -248,6 +248,7 @@ __Docker 最新版本由 [Sakuracio](https://github.com/Sakuracio) 提供__
* 修复webui中plugins2setting修改时会改变plugins2setting.cmd为字符串
* 修复昵称系统`BLACK_WORD`为空时造成报错
* 修复特殊头像时背景透明化出错
* 修复text2image纯文本时换行时颜色不统一
* 优化webUI当有插件出错时不会影响其他插件显示
* 优化Config类型注释 [@pull/830](https://github.com/HibiKier/zhenxun_bot/pull/830)
* 优化browser

View File

@ -1507,7 +1507,7 @@ async def text2image(
w, _ = _tmp.getsize(x.strip() or "")
height += h + line_height
width = width if width > w else w
image_list.append(BuildImage(w, h, font=font, font_size=font_size, plain_text=x.strip()))
image_list.append(BuildImage(w, h, font=font, font_size=font_size, plain_text=x.strip(), color=color))
width += pw
height += ph
A = BuildImage(