mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
限制帮助图片最小宽度
This commit is contained in:
parent
55b2a86397
commit
d099a85c59
@ -300,6 +300,7 @@ PS: **ARM平台** 请使用全量版 同时 **如果你的机器 RAM < 1G 可能
|
|||||||
|
|
||||||
* 更新天气api
|
* 更新天气api
|
||||||
* 使用道具可以附带额外信息供函数使用
|
* 使用道具可以附带额外信息供函数使用
|
||||||
|
* 限制帮助图片最小宽度
|
||||||
|
|
||||||
### 2022/11/12
|
### 2022/11/12
|
||||||
|
|
||||||
|
|||||||
@ -259,6 +259,7 @@ def _create_help_img(
|
|||||||
width += img.w + 10
|
width += img.w + 10
|
||||||
B = BuildImage(width + 100, height + 250, font_size=24)
|
B = BuildImage(width + 100, height + 250, font_size=24)
|
||||||
width, _ = get_max_width_or_paste(simple_help_img_list, B)
|
width, _ = get_max_width_or_paste(simple_help_img_list, B)
|
||||||
|
width = width if width > 870 else 870
|
||||||
bk = None
|
bk = None
|
||||||
random_bk = os.listdir(random_bk_path)
|
random_bk = os.listdir(random_bk_path)
|
||||||
if random_bk:
|
if random_bk:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user