使用webp背景图压缩资源包大小

This commit is contained in:
snowy 2024-05-11 10:05:01 +08:00
parent 43dfc9a940
commit afe501a06d
18 changed files with 12 additions and 9 deletions

View File

@ -18,7 +18,6 @@ placeholder = {
"&": "&", "&": "&",
",": ",", ",": ",",
"\n" : r"\n", "\n" : r"\n",
"\"" : r'\\\"'
} }

View File

@ -19,7 +19,11 @@ __author__ = "snowykami"
__plugin_meta__ = PluginMetadata( __plugin_meta__ = PluginMetadata(
name="签名服务器状态", name="签名服务器状态",
description="适用于ntqq的签名状态查看", description="适用于ntqq的签名状态查看",
usage="", usage=(
"sign count 查看当前签名数\n"
"sign data 查看签名数变化\n"
"sign chart [limit] 查看签名数变化图表\n"
),
type="application", type="application",
homepage="https://github.com/snowykami/LiteyukiBot", homepage="https://github.com/snowykami/LiteyukiBot",
extra={ extra={

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 397 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 433 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 412 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 MiB

View File

@ -1,11 +1,11 @@
const bgs = [ const bgs = [
"bg1.png", "bg1.webp",
"bg3.png", "bg2.webp",
"bg4.png", "bg3.webp",
"bg5.png", "bg4.webp",
"bg6.png", "bg5.webp",
"bg7.png", "bg6.webp",
"bg9.png", "bg7.webp",
] ]
// 随机选择背景图片 // 随机选择背景图片
document.body.style.backgroundImage = `url(./img/${bgs[Math.floor(Math.random() * bgs.length)]})`; document.body.style.backgroundImage = `url(./img/${bgs[Math.floor(Math.random() * bgs.length)]})`;