360 Secure SkillHub
360 安全技能中心

Image Magic resizer

该技能提供单个 Bash 脚本 scripts/resize.sh,通过 ImageMagick 按几何参数(如 800x、800x600、50%、800x800>)缩放本地图片,输出到指定路径或默认的 input-resized.<ext>;运行需本地已有 bash 与 magick/convert,附带 brew 安装 ImageMagick 的元数据。

pr1vateer
pr1vateer
热度 90.66
最近更新 2026-05-11 15:53:49
分类:效率依赖:代码执行 / 读写文件应用场景:文件转换 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add image-resize
Metadata
name
resize-magic
version
0.1.0
author
Stenkil <you@example.com>
description
Resize images using ImageMagick (CLI). Entrypoint is a Bash script.
entrypoint
scripts/resize.sh
metadata
{"openclaw":{"emoji":"🖼️","requires":{"bins":["bash"],"anyBins":["magick","convert"]},"install":[{"id":"brew","kind":"brew","formula":"imagemagick","bins":["magick","convert"],"label":"Install ImageMagick (brew)"}]}}
user-invocable
true
command-dispatch
tool
command-tool
resize
commands
[{"name":"resize","usage":"resize <input-path> <geometry> [output-path]","description":"Resize an image using ImageMagick.\nGeometry examples:\n - 800x -> width 800, preserve aspect ratio\n - 800x600 -> exact geometry (may change aspect)\n - 50% -> scale to 50% of original\n - 800x800\\> -> resize only if larger than 800x800\n"}]

Overview

This skill provides a single executable script scripts/resize.sh that the agent (or the openclaw CLI) can call to resize an image with ImageMagick.

Installation (manual)

Copy the folder into your OpenClaw skills directory, e.g.:

cp -r resize-magic ~/.openclaw/skills/resize-magic

# or install via CLI if available
openclaw skill install ./resize-magic