pixel-export

A command for exporting sprites, which are small game images, as PNG files, animated GIFs, sprite sheets, or JSON data.

In plain words
What is it for?
It helps create single images, animated GIFs, game-ready sprite sheets, and frame metadata files.
Why use it?
It provides one place to choose the output format, scaling, frame layout, transparency, and animation settings.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/willibrandon/pixel-plugin/pixel-export
Clone the repo
git clone --depth 1 https://github.com/willibrandon/pixel-plugin
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,154 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00013 $0.02154
Opus 5 $0.00006 $0.01077
Sonnet 5 $0.00003 $0.00431
Haiku 4.5 $0.00001 $0.00215

Measured yesterday against content hash a08b4d218f5e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pixel-export scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/pixel-export.md · 358 lines

How it starts

The opening of the file, as written. The whole thing — 358 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/pixel-export - Quick Export

Export sprites in various formats with optional scaling and layout options.

Usage

/pixel-export <format> [output-file] [options]

Formats

png - Export single frame as PNG

/pixel-export png sprite.png
/pixel-export png sprite.png scale=2

gif - Export animation as GIF

/pixel-export gif animation.gif
/pixel-export gif animation.gif fps=10

sheet - Export spritesheet

/pixel-export sheet spritesheet.png
/pixel-export sheet spritesheet.png layout=horizontal

json - Export with JSON metadata

/pixel-export json sprite.json
/pixel-export json sprite.json format=aseprite

Options

Common Options:

  • scale=N - Scale output by N (1, 2, 4, 8) using nearest-neighbor
  • transparent - Preserve transparency (default: true)
  • background=#RRGGBB - Set background color (default: transparent)

GIF Options:

  • fps=N - Frames per second (default: 10)
  • loop=N - Loop count (0 = infinite, default: 0)
  • optimize - Optimize GIF file size (default: true)

Spritesheet Options:

  • layout=horizontal|vertical|grid|packed - Layout style (default: horizontal)
  • padding=N - Pixels between frames (default: 0)
  • trim - Trim transparent edges (default: false)

JSON Options:

  • format=aseprite|texturepacker|unity|godot - Metadata format (default: aseprite)
  • include-layers - Include layer information (default: false)

Examples

/pixel-export png output.png
→ Exports current frame as PNG (1x scale)

/pixel-export png output.png scale=4
→ Exports at 4x scale (pixel-perfect)

/pixel-export gif animation.gif fps=12
→ Exports animation as GIF at 12 FPS

/pixel-export sheet spritesheet.png layout=grid
→ Exports frames in grid layout

/pixel-export json sprite.json format=unity
→ Exports with Unity-compatible JSON metadata

/pixel-export png sprite.png scale=2 background=#ffffff
→ Exports at 2x scale with white background

Layout Styles

horizontal - All frames in a single row

[Frame1][Frame2][Frame3][Frame4]

Read the full file on GitHub · 358 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 358 lines · 13 tokens per session scan A a08b4d218f5e

Subscribe to this mod's changes

pixel-export is a command published in the GitHub repository willibrandon/pixel-plugin (302 stars, last pushed 10mo ago), licensed MIT. It adds 13 tokens to every session and 2,154 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.