← 返回 Skills 市场
sanford284

Image Process

作者 Real · GitHub ↗ · v0.1.0
cross-platform ⚠ suspicious
1937
总下载
0
收藏
6
当前安装
1
版本数
在 OpenClaw 中安装
/install image-process
功能描述
Image processing tool for compression, background removal/replacement, and upscaling. Invoke when user wants to compress image, remove background, change bac...
使用说明 (SKILL.md)

Image Process Skill

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

Parameter Type Description
input string Path to input image
quality number Compression quality (1-100), default 80
output string Output file path

removeBackground

Parameter Type Description
input string/Buffer Path or buffer of input image
output string Output file path (optional)

replaceBackground

Parameter Type Description
input string Path to foreground image
background string Hex color (e.g. '#ffffff') or path to background image
output string Output file path

upscaleImage

Parameter Type Description
input string Path to input image
scale number Scale factor (e.g. 2 for 2x), default 2
width number Target width (overrides scale)
height number Target height (overrides scale)
output string Output 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
安全使用建议
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) — these are likely packaging/documentation issues but you may want to confirm the intended CLI name and package identity; (4) the tool reads and writes any file paths you pass it — avoid giving it sensitive files/paths; (5) if you need stricter assurance, run npm install and execute the code in a sandbox or review the installed dependency tree before running on production data.
功能分析
Type: OpenClaw Skill Name: image-process Version: 0.1.0 The skill is classified as suspicious due to a Local File Inclusion (LFI) and Arbitrary File Write vulnerability in `index.js` and `cli.js`. The `compressImage`, `removeBackgroundFromImage`, `replaceBackground`, and `upscaleImage` functions directly use user-provided `input` and `output` file paths, resolved with `path.resolve()`, without further sanitization or restriction to a designated working directory. This could allow an attacker to read arbitrary files (e.g., `/etc/passwd`) or write processed data to arbitrary locations on the file system if they can control the input parameters and the OpenClaw agent operates with broad file system permissions. While there is no evidence of intentional malicious behavior like data exfiltration or backdoor installation, this vulnerability poses a significant risk.
能力评估
Purpose & Capability
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.
Instruction Scope
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.
Install Mechanism
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.
Credentials
The skill does not request environment variables, credentials, or config paths. All operations are file-based and proportional to the declared purpose.
Persistence & Privilege
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install image-process
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /image-process 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of the image-process skill: - Compress images to reduce file size with adjustable quality settings. - Remove image backgrounds using AI-powered tools. - Replace image backgrounds with a solid color or a custom image. - Upscale images by a chosen factor or to specific dimensions. - Includes CLI commands and programmatic usage examples.
元数据
Slug image-process
版本 0.1.0
许可证
累计安装 6
当前安装数 6
历史版本数 1
常见问题

Image Process 是什么?

Image processing tool for compression, background removal/replacement, and upscaling. Invoke when user wants to compress image, remove background, change bac... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1937 次。

如何安装 Image Process?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install image-process」即可一键安装,无需额外配置。

Image Process 是免费的吗?

是的,Image Process 完全免费(开源免费),可自由下载、安装和使用。

Image Process 支持哪些平台?

Image Process 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Image Process?

由 Real(@sanford284)开发并维护,当前版本 v0.1.0。

💬 留言讨论