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
热度 52.82
最近更新 2026-05-11 15:53:49

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add pr1vateer/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