首页龙虾技能列表 › Image Process — 技能工具

Image Process — 技能工具

v0.1.0

[自动翻译] Image processing tool for compression, background removal/replacement, and upscaling. Invoke when user wants to compress image, remove background, cha...

0· 1,200·0 当前·0 累计
by @sanford284·MIT-0
下载技能包
License
MIT-0
最后更新
2026/3/2
安全扫描
VirusTotal
可疑
查看报告
OpenClaw
安全
high confidence
The skill's code, dependencies, and instructions are consistent with an offline image-processing tool (compression, background removal/replacement, upscaling); nothing in the bundle requests unrelated credentials or network endpoints.
评估建议
This skill appears to be what it claims (an offline image-processing tool). Before installing, consider: (1) npm install will download native binaries (sharp, onnxruntime-node) — ensure you run this in an environment where installing native modules is acceptable and Node >=18 is available; (2) verify the @imgly/background-removal-node package source and license if you need vendor trust; (3) the package and lockfile show small metadata inconsistencies (different package/bin names in places) — ...
详细分析 ▾
用途与能力
The name/description match the included code: index.js implements compress, remove background, replace background, and upscale. Dependencies (@imgly/background-removal-node, sharp) are appropriate for the stated features. Minor metadata inconsistencies exist (package.json/package-lock/package bin name mismatch and SKILL.md references @imgly/background-removal vs @imgly/background-removal-node), but these are documentation/packaging issues rather than indicators of hidden behavior.
指令范围
SKILL.md and CLI instruct the agent to read input image files and write output image files, and to call the exported functions. The code only reads/writes paths supplied by the user and calls a local background-removal library; it does not access unrelated system files, environment variables, or external HTTP endpoints in the provided files.
安装机制
There is no platform install spec in the registry metadata, but the package includes package.json and package-lock.json indicating an npm install is expected. Dependencies are fetched from the public npm registry (registry.npmjs.org) which is standard; @imgly/background-removal-node and onnxruntime-node will pull native binaries. This is expected for local ML/image processing but means native binaries will be downloaded/installed at npm install time and Node >=18 is required.
凭证需求
The skill does not request environment variables, credentials, or config paths. All operations are file-based and proportional to the declared purpose.
持久化与权限
The skill does not request persistent platform privileges (always:false). It does not modify other skills or system configurations in the provided files. Autonomous invocation is allowed by default (normal), but that is not combined with any elevated privileges or broad credential access.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv0.1.02026/3/2
● 可疑

安装命令 点击复制

官方npx clawhub@latest install image-process
镜像加速npx clawhub@latest install image-process --registry https://cn.clawhub-mirror.com

技能文档

This skill provides image processing capabilities including compression, background removal, background replacement, and upscaling.

Features

  • Image Compression: Compress images to reduce file size with adjustable quality
  • Background Removal: AI-powered background removal using @imgly/background-removal
  • Background Replacement: Replace background with a custom color or another image
  • Image Upscaling: Enlarge images to bigger dimensions

Usage

1. Compress Image

const { compressImage } = require('./index');

const result = await compressImage({ input: './image.jpg', quality: 80, output: './compressed.jpg' });

2. Remove Background

const { removeBackground } = require('./index');

const result = await removeBackground({ input: './person.jpg', output: './person-nobg.png' });

3. Replace Background

const { replaceBackground } = require('./index');

// Replace with solid color const result = await replaceBackground({ input: './person.jpg', background: '#ffffff', output: './result.jpg' });

// Replace with another image const result = await replaceBackground({ input: './person.jpg', background: './background.jpg', output: './result.jpg' });

4. Upscale Image

const { upscaleImage } = require('./index');

// Scale by factor (2x) const result = await upscaleImage({ input: './image.jpg', scale: 2, output: './upscaled.jpg' });

// Or specify exact dimensions const result = await upscaleImage({ input: './image.jpg', width: 2000, height: 3000, output: './upscaled.jpg' });

Parameters

compressImage

ParameterTypeDescription
inputstringPath to input image
qualitynumberCompression quality (1-100), default 80
outputstringOutput file path

removeBackground

ParameterTypeDescription
inputstring/BufferPath or buffer of input image
outputstringOutput file path (optional)

replaceBackground

ParameterTypeDescription
inputstringPath to foreground image
backgroundstringHex color (e.g. '#ffffff') or path to background image
outputstringOutput file path

upscaleImage

ParameterTypeDescription
inputstringPath to input image
scalenumberScale factor (e.g. 2 for 2x), default 2
widthnumberTarget width (overrides scale)
heightnumberTarget height (overrides scale)
outputstringOutput file path

CLI Commands

# Compress
image-process compress ./photo.jpg -q 80

# Remove background image-process remove-bg ./person.jpg

# Replace background image-process replace-bg ./person.jpg "#ffffff" image-process replace-bg ./person.jpg ./background.jpg

# Upscale image-process upscale ./photo.jpg -s 2 image-process upscale ./photo.jpg -w 2000 -h 3000

Installation

cd E:\cvte\skills\image-process
npm install

Dependencies

  • @imgly/background-removal-node - AI background removal
  • sharp - High-performance image processing
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务