← 返回 Skills 市场
guanyang

Gif Maker

作者 guanyang · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
595
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install gif-maker
功能描述
将序列帧图片或精灵表(Sprite Sheet)转换为高质量 GIF 动画。支持自定义 FPS、布局切分及循环播放。
使用说明 (SKILL.md)

GIF 动画生成器 (GIF Maker)

本 Skill 旨在帮助用户快速将一组序列帧图片或单张精灵表(Sprite Sheet)转换为 GIF 动画。

核心功能

  • 序列帧转 GIF:支持读取文件夹内的 png, jpg 序列,按文件名排序合成 GIF。
  • 精灵表转 GIF:支持读取单张 Grid 图片(如 4x4 精灵表),自动切分并合成为 GIF。
  • 智能压缩:支持通过 --max-size 参数指定目标文件大小(如 950KB),自动调整压缩参数以满足微信表情包等平台的体积限制。
  • 参数控制
    • --fps:指定每秒帧数(默认为 12)。
    • --layout:指定精灵表布局(如 4x4),仅在这个模式下需要。
    • --loop:默认永久循环。
    • --max-size: 指定最大体积 (KB)。

使用指南

1. 快速开始

无需手动安装依赖,直接运行脚本即可。工具会自动创建虚拟环境 (.venv) 并安装所需依赖。

# 基本用法 1:从文件夹读取序列帧
./skills/gif-maker/scripts/run.sh /path/to/frame_folder --output my_anim.gif

# 基本用法 2:从单张精灵表生成 (需要指定布局)
./skills/gif-maker/scripts/run.sh /path/to/sheet.png --layout 4x4 --output my_sheet_anim.gif

# 常用选项:
# - 指定 FPS (例如 24)
./skills/gif-maker/scripts/run.sh /path/to/folder --fps 24

# - 开启自动压缩 (限制文件大小在 950KB 以内)
./skills/gif-maker/scripts/run.sh /path/to/folder --max-size 950

2. (可选) 手动安装

如果您希望手动管理环境(注意:压缩功能依赖 gifsicle 工具,请确保系统已安装):

  • macOS: brew install gifsicle
  • Ubuntu: sudo apt-get install gifsicle
python3 -m venv skills/gif-maker/.venv
source skills/gif-maker/.venv/bin/activate
pip install -r skills/gif-maker/requirements.txt
python3 skills/gif-maker/scripts/make_gif.py ...

参数说明

  • source: 输入路径。可以是包含图片的文件夹,也可以是单张图片文件。
  • --output (-o): 输出 GIF 文件名,默认为 output.gif
  • --fps: 帧率,默认为 12。
  • --layout: 仅当 source 为单文件时使用,格式为 行数x列数 (如 4x4)。
  • --max-size: (可选) 启用 GIF 压缩,指定目标文件最大大小 (KB)。仅当原始文件超过此大小时才会尝试压缩。

示例

假设你有一个文件夹 frames/ 包含 01.png, 02.png ... 10.png

./skills/gif-maker/scripts/run.sh frames/ -o animation.gif --fps 15

假设你有一张 sheet.png 是 4x4 的动作序列,且需要生成符合微信表情包规范(\x3C1MB)的 GIF:

./skills/gif-maker/scripts/run.sh sheet.png --layout 4x4 -o action.gif --max-size 950
安全使用建议
This skill appears to do exactly what it says: it creates a local Python virtual environment, installs Pillow, reads the image files you point it at, produces a GIF, and optionally runs the system gifsicle binary (if installed) to compress outputs. Before running: (1) confirm you trust the image source paths you provide (the script will read any files under that path), (2) be aware it will create a .venv inside the skill folder and install Pillow, and (3) if you need gifsicle compression, install gifsicle from your package manager rather than trusting unknown downloads. There is no indication the skill exfiltrates data or requests credentials.
功能分析
Type: OpenClaw Skill Name: gif-maker Version: 1.0.0 The OpenClaw AgentSkill 'gif-maker' is benign. All files (metadata, documentation, shell script, and Python code) align with its stated purpose of creating and compressing GIFs. The `run.sh` script securely manages a Python virtual environment and executes `make_gif.py`. The `make_gif.py` script uses `Pillow` for image processing and `subprocess.run` to call the external `gifsicle` tool for compression, employing a list of arguments to mitigate shell injection risks. There is no evidence of data exfiltration, unauthorized network activity, persistence mechanisms, obfuscation, or malicious prompt injection attempts in the documentation.
能力评估
Purpose & Capability
Name/description match the code and docs. The skill contains a Python implementation (Pillow) for composing GIFs and an optional call to gifsicle for compression, which is consistent with the described '智能压缩' feature. No unrelated binaries, env vars, or cloud credentials are requested.
Instruction Scope
SKILL.md and run.sh instruct the agent to create a local venv, install requirements.txt (Pillow), and run make_gif.py with user-supplied paths and options. The runtime actions are limited to reading image files from the provided source path and writing the output GIF; the only external command invoked is gifsicle (if available) for compression. There are no instructions to read unrelated system files, export data, or contact remote endpoints.
Install Mechanism
There is no remote download of arbitrary code. run.sh auto-creates a Python venv and pip-installs a single dependency (Pillow) from requirements.txt, which is proportionate to the task. No archives or obscure URLs are fetched, and gifsicle is optional (user-installed or system package).
Credentials
The skill declares no required environment variables, credentials, or config paths. It does not attempt to access secrets or unrelated environment variables. The only filesystem write is the local .venv and the user-specified output GIF, which are expected for this functionality.
Persistence & Privilege
always is false and the skill does not request permanent elevated presence. It creates a .venv inside its own skill directory (normal) and does not modify other skills or global agent configuration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install gif-maker
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /gif-maker 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of gif-maker. - Convert image sequences or sprite sheets into high-quality GIFs. - Supports custom FPS, layout splitting (e.g., 4x4), and loop settings. - Smart compression to target file size (e.g., for WeChat stickers). - Easy setup: automatically creates a virtual environment and installs dependencies. - Command-line usage with clear parameter options for flexible GIF creation.
元数据
Slug gif-maker
版本 1.0.0
许可证
累计安装 2
当前安装数 2
历史版本数 1
常见问题

Gif Maker 是什么?

将序列帧图片或精灵表(Sprite Sheet)转换为高质量 GIF 动画。支持自定义 FPS、布局切分及循环播放。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 595 次。

如何安装 Gif Maker?

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

Gif Maker 是免费的吗?

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

Gif Maker 支持哪些平台?

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

谁开发了 Gif Maker?

由 guanyang(@guanyang)开发并维护,当前版本 v1.0.0。

💬 留言讨论