feat(cherry-tomato): 新增图片混淆/解混淆插件(小番茄)

Gilbert 曲线像素重排,可与网页版互解;`混淆` / `解混淆` 命令
(回复图片或图文同条消息发送),附 tests/test_cherry_tomato.py

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
sansenhoshiandClaude Code committed 2026-10-13 17:53:27 +08:00
1 parent 968b3d1cfe
commit fb15b976aa
9 files changed
+862

No files matched your search

@@ -0,0 +1,22 @@
"""图片混淆(小番茄)—— Gilbert 曲线像素重排,可与网页版互解。"""
from nonebot import require
from nonebot.plugin import PluginMetadata
require("nonebot_plugin_alconna")
__plugin_meta__ = PluginMetadata(
name="图片混淆(小番茄)",
description=(
"小番茄图片混淆:Gilbert 曲线 + 黄金比例偏移做像素重排,"
"混淆/解混淆互为逆操作,可与网页版(hideImg)互解"
),
usage="回复一张图片发送「混淆」或「解混淆」(图片和命令同一条消息发也行)",
type="application",
)
# 入口只做四件事:require / meta / 导入子模块 / 配置注册
from . import config as _config # noqa: E402,F401
from . import handlers as _handlers # noqa: E402,F401
_config.register_config()