名称: resize-magic
版本: 0.1.0
作者: Stenkil you@example.com
描述: 使用 ImageMagick(命令行工具)调整图像大小。入口点是一个 Bash 脚本。
entrypoint: scripts/resize.sh
元数据: { "openclaw": { "emoji": "🖼️", "requires": { "bins": ["bash"], "anyBins": ["magick","convert"] }, "install": [ { "id": "brew", "kind": "brew", "formula": "imagemagick", "bins": ["magick","convert"], "label": "安装 ImageMagick (brew)" } ] } }
user-invocable: true
command-dispatch: tool
command-tool: resize
commands:
- name: resize
usage: resize <输入路径> <尺寸参数> [输出路径]
description: |
使用 ImageMagick 调整图像大小。
尺寸参数示例:
- 800x -> 宽度 800,保持宽高比
- 800x600 -> 精确尺寸(可能改变宽高比)
- 50% -> 缩放至原图的 50%
- 800x800> -> 仅当图像大于 800x800 时进行缩放
本技能提供了一个可执行脚本 scripts/resize.sh,代理(或 openclaw 命令行工具)可以调用它来使用 ImageMagick 调整图像大小。
将文件夹复制到你的 OpenClaw 技能目录中,例如:
cp -r resize-magic ~/.openclaw/skills/resize-magic
# 或者,如果可用,通过 CLI 安装
openclaw skill install ./resize-magic