Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器clawhub未标认证来源可访问clear审计提醒

pixel-art-processing像素艺术处理

Agent Skill

pixel-art-processing 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,015

周安装

164

GitHub Stars

1

下载量

1,286
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pixel-art-processing(像素艺术处理)
来源仓库:https://github.com/anlinxi/pixel-art-processing
安装命令:
openclaw skills install pixel-art-processing
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install pixel-art-processing

简介

像素艺术精灵表处理工具,支持视频帧提取、GIF转换与图像合成分割。

  • 适用于游戏开发中的素材整理与像素风格图像处理场景。
  • 通过命令行调用,可批量处理图像、调整尺寸或进行抠图裁剪操作。
  • 使用前需确认本地环境是否支持图像编解码库及文件读写权限。
  • pixel-art-processing 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
pixel-art-processing
description
|

Pixel Art Processing / 像素美术处理

[!NOTE] This skill is based on FrameRonin (https://github.com/systemchester/FrameRonin). All core algorithms and workflows are derived from the FrameRonin project.

Overview / 概述

This skill provides a complete pixel art / sprite sheet processing pipeline:

功能 / Feature描述 / Description
🎬 视频转序列帧Extract frames from video → matting → sprite sheet合成
🔄 GIF ↔ 序列帧GIF拆帧 / 序列帧合成GIF
🖼️ 多图合成单图Multiple images → single sprite sheet
✂️ 单图拆分Split single image into grid frames
🖌️ 简易拼接Simple vertical/horizontal/overlay stitching
🗑️ 抠图 (AI)rembg AI background removal
📐 缩放/裁切Resize, crop, padding
🔲 像素化Pixelation effect
💧 色度键抠图Green/blue screen chroma keying
🚫 Gemini水印去除Remove Gemini visible watermark
⚔️ RPGMAKER处理One-click RPG Maker sprite workflow
🎥 Seedance水印去除Remove Seedance/即梦 video watermark

Quick Start / 快速开始

1. Deploy Backend / 部署后端

# Docker部署(推荐 / Recommended)
cd <skill>/scripts
docker-compose up -d

# 或手动部署 / Or manual:
pip install -r requirements.txt
python run_api.py

后端地址 / Backend URL: http://localhost:8000 API文档 / API docs: http://localhost:8000/docs

2. Start Worker / 启动Worker

# 需要Redis / Redis required
rq worker pixelwork --url redis://localhost:6379/0

Core Concepts / 核心概念

Sprite Sheet Layout / Sprite Sheet布局

┌────┬────┬────┬────┐
│ 0  │ 1  │ 2  │ 3  │  row=0
├────┼────┼────┼────┤
│ 4  │ 5  │ 6  │ 7  │  row=1
├────┼────┼────┼────┤
│ 8  │ 9  │ ..│ .. │
└────┴────┴────┴────┘

Index JSON:  { i, x, y, w, h, t }
i = frame index
x, y = position on sheet
w, h = frame size
t = timestamp (seconds)

Processing Modes / 处理模式

  • tight_bbox: 紧贴alpha边界裁切 / Crop tightly to alpha boundary
  • safe_bbox: alpha边界+padding / Alpha boundary + padding margin
  • none: 不裁切 / No crop

API Reference / API参考

详见 / See: references/api.md

Client-side Processing / 客户端处理

对于 GIF/序列帧转换等纯前端功能,使用浏览器Canvas API直接处理:

For pure client-side features like GIF/frames conversion, use browser Canvas API directly:

scripts/
├── client_gif_processor.html   # GIF拆帧/合成 - 浏览器直接运行
├── sprite_split.html           # Sprite sheet拆分 - 浏览器直接运行
└── image_processor.html         # 图像基本处理 - 浏览器直接运行

直接在浏览器打开这些HTML文件即可使用。

Open these HTML files directly in browser to use.

RPG Maker Workflow / RPG Maker 工作流

详见 / See: references/rpgmaker.md

Sprite Sheet Math / Sprite Sheet 数学

详见 / See: references/sprite_math.md

Algorithm Details / 算法细节

透明行列检测 / Transparent Row/Column Detection

用于超级拆分:按透明行/列智能切割图像。

Used for super-split: intelligently cuts image by transparent rows/columns.

// 找出完全透明的行索引
// Find fully transparent rows
function findTransparentRows(imageData) {
  const { data, width, height } = imageData
  const rows = []
  for (let y = 0; y < height; y++) {
    let allTransparent = true
    for (let x = 0; x < width; x++) {
      if (data[(y * width + x) * 4 + 3] !== 0) {
        allTransparent = false
        break
      }
    }
    if (allTransparent) rows.push(y)
  }
  return rows
}

Alpha边界框 / Alpha Bounding Box

function getAlphaBbox(img) {
  // 返回 {x1, y1, x2, y2} 或 null
  // Returns {x1, y1, x2, y2} or null
}

连通域检测 / Connected Component

用于超级橡皮等工具:按连通域+容差选区。

Used for super eraser: select by connected component + tolerance.

FFmpeg Integration / FFmpeg集成

视频帧提取依赖 ffprobe/ffmpeg:

Video frame extraction requires ffprobe/ffmpeg:

# 提取帧 / Extract frames
ffmpeg -y -ss <timestamp> -i video.mp4 -vframes 1 output.png

# 获取视频信息 / Get video info
ffprobe -v quiet -print_format json -show_format -show_streams video.mp4

Dependencies / 依赖

Backend / 后端

  • FastAPI >= 0.104.0
  • PIL/Pillow >= 10.0.0
  • rembg >= 2.0.50 (u2net model)
  • ffmpeg-python >= 0.2.0
  • opencv-python-headless >= 4.8.0
  • Redis + RQ (for async jobs)

Frontend / 前端

  • gifuct-js (GIF拆帧)
  • gifenc (GIF编码)
  • jszip (批量下载)
  • React + Ant Design

Feature Flags / 特性开关

功能路径
NFT门槛frontend/src/config/features.ts → RONIN_PRO_REQUIRE_NFT
Ronin登录frontend/src/auth/context.tsx
Gemini链接frontend/src/config/gemini.ts

Deploy to Remote / 远程部署

# 1. 构建前端 / Build frontend
cd frontend && npm install && npm run build

# 2. 配置Nginx / Nginx config
# See nginx.conf in references/

# 3. 启动后端 / Start backend
uvicorn app.main:app --host 0.0.0.0 --port 8000

# 4. Docker完整部署 / Full Docker deploy
docker-compose -f docker-compose.yml up -d

Credits / 致谢

  • FrameRonin by systemchester: https://github.com/systemchester/FrameRonin
  • rembg for AI matting: https://github.com/danielgatis/rembg
  • gifuct-js / gifenc for GIF processing

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

71.36%
按下载量换算918

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills