docs(skills): AGENTS.md 改成「现象 → 命令」排错清单
删掉服务器背景、agent-executor-init、SKILL.md 说明之类的旁白。只保留: 报什么错 → 敲什么命令。四份都在 20 行内。
This commit is contained in:
@@ -1,26 +1,15 @@
|
||||
# image-process:本机环境
|
||||
# image-process
|
||||
|
||||
`ModuleNotFoundError: No module named 'PIL'`
|
||||
|
||||
```sh
|
||||
SK="$(dirname "$AGENT_SKILLS_DEPS")/image-process"
|
||||
python3 -m pip install --target "$AGENT_SKILLS_DEPS" -r "$(dirname "$AGENT_SKILLS_DEPS")/image-process/requirements.txt"
|
||||
```
|
||||
|
||||
## Pillow
|
||||
|
||||
```sh
|
||||
python3 -m pip install --target "$AGENT_SKILLS_DEPS" -r "$SK/requirements.txt"
|
||||
python3 -c "import PIL"
|
||||
```
|
||||
|
||||
## 中文水印缺字体
|
||||
|
||||
技能不内置字体,也不跨平台查找。报「中文水印缺少字体」时传 `font` 参数:
|
||||
|
||||
- macOS:`/System/Library/Fonts/Hiragino Sans GB.ttc`(简体)、`/System/Library/Fonts/PingFang.ttc`
|
||||
- Linux:`/usr/share/fonts/truetype/wqy/wqy-zenhei.ttc`
|
||||
- Windows:`C:\Windows\Fonts\msyh.ttc`
|
||||
`中文水印缺少字体`:传 `font` 参数
|
||||
|
||||
```json
|
||||
{"action":"watermark","input":"a.jpg","text":"机密","font":"/System/Library/Fonts/Hiragino Sans GB.ttc"}
|
||||
```
|
||||
|
||||
英文/数字水印不需要字体;其余动作只依赖 Pillow。
|
||||
字体:macOS `/System/Library/Fonts/Hiragino Sans GB.ttc`;Linux `/usr/share/fonts/truetype/wqy/wqy-zenhei.ttc`;Windows `C:\Windows\Fonts\msyh.ttc`。
|
||||
|
||||
Reference in New Issue
Block a user