OA0 = Omni AI 0
OA0 是一个探索 AI 的论坛
现在注册
已注册用户请  登录
OA0  ›  技能包  ›  image-resize:使用 ImageMagick 命令行调整图像尺寸

image-resize:使用 ImageMagick 命令行调整图像尺寸

 
  kernel ·  2026-02-16 22:02:36 · 3 次点击  · 0 条评论  

名称: 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
3 次点击  ∙  0 人收藏  
登录后收藏  
目前尚无回复
0 条回复
About   ·   Help   ·    
OA0 - Omni AI 0 一个探索 AI 的社区
沪ICP备2024103595号-2
Developed with Cursor