A Fourth Place toolPixel Motion Studio
Features · version 0.2.0

Features

Each feature added in 0.2.0, with how to use it and what you get. Open the one you want. The pictures and numbers come from converting the 26 included frames (a walking character).

Summary of what's new in 0.2.0

What goes in1 to 64 PNGs of the same size: one motion, one frame per image, read in the number order of the file names. Frames with the character at a steady size and feet line come out cleanest.

How the three fit togetherThe CLI does the conversion. The skill is a set of steps for an AI agent (with the CLI inside). MCP lets an AI agent call the CLI. Not sure? Start with the skill.

For AI agents

Use it from an AI agent

01Ask an AI agent (skill)From “turn this frame sequence into pixel art” through the check, in one request

What it does

This teaches Claude Code or Codex the steps for pixel art. Once it is installed, you ask in everyday words. The agent converts the frames, checks the foot drift, and hands you files your game can use.

How to use it

  1. Download the ZIP from the CLI page and unzip it.
  2. Copy the skills/pixel-motion-studio folder, as a whole folder, to one of these places (the CLI is inside it too).
    • Claude Code: ~/.claude/skills/pixel-motion-studio/
    • Codex: ~/.codex/skills/pixel-motion-studio/
  3. Ask the agent in everyday words.
Turn the frame sequence in the frames folder into pixel art, 48px tall and 16 colors. Check the foot drift too, and make a play.html in the output folder that loops the walk in Phaser 3.

You can also ask the agent to “install the skill from this ZIP”. It will do the copy for you.

What you get

In a Phaser 3 screen, a pixel-art character walks on a white guide line
The check page Claude Code (Sonnet) made from that one request. The white line is the foot line.
  • 28×48pxSize of one frame
  • 16 colorsShared by every frame
  • Up to 1pxFoot drift
  • 26 framesA sheet of 8 columns by 4 rows

Tried in an empty folder that had only the skill and the sample (2026-11-06).

02Convert from the command line (CLI)The same conversion as the web app, in one command

What it does

Run the same conversion as the web app from the command line. With Node.js 20 or later, there is nothing to install and nothing extra to add. Use it when you convert many frame sequences at once, or when you fit it into your own workflow.

How to use it

In the unzipped folder, convert the 26 included frames.

node pixel-motion-studio.cjs convert examples/walk --out my-walk

To set the size and the color count:

node pixel-motion-studio.cjs convert <frames folder> --out <new folder> --frame-height 64 --colors 32

Point the output at a new folder that does not exist yet. --help lists every option. For a green screen, use --key-color "#00ff00".

What you get

In about 4 seconds, the output folder has a game-ready set, and a short summary is printed.

Done: my-walk
26 frames / 76x130px each / 249 colors / 24 FPS
Pivot (feet): x=45, y=130 (Unity: 0.5921, 0)
Foot drift: up to 2px / stray pixels: 0
frame-000.png …A transparent PNG for each frame
spritesheet.pngEvery frame on one image
spritesheet.jsonAtlas JSON for the sheet
manifest.jsonSettings, the pivot, and foot drift
animation.apng / .gifFor checking the motion
03Call it directly from an AI agent (MCP)Register it as one of the agent’s tools

What it does

Run the CLI as an MCP server and register it as a tool for the agent. The agent can call “convert a frame sequence” and “read the result” without building the command itself.

How to use it

In Claude Code, one line registers it.

claude mcp add pixel-motion-studio -- node "C:/Tools/pixel-motion-studio-cli-0.2.0/pixel-motion-studio.cjs" mcp

Replace the path with where you unzipped the ZIP. How to set it up in Codex is in README.en.md in the ZIP.

What you get

The agent gains two tools.

pixelate_framesConvert the frame-sequence PNGs and write them to a new folder
inspect_outputRead the result in the exported folder

What comes back (converted with canvas height height: 64 and 32 colors; the exported frames were 23×39px):

"frameWidth": 23, "frameHeight": 39, "colors": 32,
"quality": { "footDriftPx": 1, "strayPixels": 8,
  "issues": [{ "code": "stray-pixels", "frame": "frame-006" }] }

To set the height of the exported frames, use frameHeight.

Size & feet

Line up the size and the feet

04Set the frame heightSet the exported size in px

What it does

Set the height of the exported frames directly, in px. A frame is the box around all frames, so this is the height of the tallest pose. Use it when you want the character at about a set height for your game screen, such as 48px.

How to use it

node pixel-motion-studio.cjs convert examples/walk --out walk48 --frame-height 48

In MCP and the skill, this is frameHeight. It measures once and then picks the scale, so the result can be about 1px off. It cannot go above the source image height. To set it by the height of the whole source image, --height (canvas height) still works, as before.

What you get

The same 26 frames, converted at four heights (32 colors). In this example the largest difference from the setting was 1px (96 → 97px).

A character converted at 32px tall
--frame-height 3218×32px
A character converted at 48px tall
--frame-height 4828×48px
A character converted at 64px tall
--frame-height 6438×64px
A character converted at 96px tall
--frame-height 9656×97px

Shown at 4× size.

05Pivot (feet)The point that stands the character on the floor, shared by every frame

What it does

Each conversion measures the feet on every frame and writes a pivot (feet) shared by every frame. In a game, put this point on the floor and the character stands on it. The pivot records a position; it does not fix drift in the art itself (check that with foot drift).

How to use it

It goes into geometry.pivot in manifest.json even if you set nothing (pivot in the CLI and MCP result). Each engine gets a value you can drop straight in.

Phaserpivot.normalized into setOrigin
Unitypivot.unity into the Sprite Pivot (Custom)
Otherpivot.x and pivot.y (px from the top-left of the frame)

What you get

"pivot": { "x": 16, "y": 48,
  "normalized": { "x": 0.5714, "y": 1 },
  "unity": { "x": 0.5714, "y": 0 } }
In Phaser 3, a character with the pivot as its origin stands on a white guide line
Set the origin to pivot.normalized and the feet sit on the white line (foot drift in this example: up to 1px).
06Check foot drift in numbersFind the frame that bounced, then decide whether to remake it

What it does

It measures, in px, how much the foot height differs between frames. On a walk or an idle, a difference of 3px or more is reported, along with the frame that drifted most. You can catch feet bouncing up and down before you play the animation. It is one of the most visible breaks in pixel-art animation.

How to use it

It measures even if you set nothing. In the Studio it shows in the result band. In the CLI it shows in the summary. In JSON it is in quality.footDriftPx and quality.issues.

The feet are measured from the lowest opaque pixel in each frame. A floor shadow or a long hem at the bottom is counted as the feet. Use the number to pick which frames to play back and check.

What you get

To check it, we shifted only frame-007 up in the 26 included frames, then converted (64px tall).

frame-006. The feet sit on the guide line
frame-006
frame-007. The feet float off the guide line
frame-007 (the frame we shifted)
frame-008. The feet sit on the guide line
frame-008
A walk animation that hops for a moment at frame-007
Play it, and it hops for a moment
Foot drift: up to 4px
- foot-drift (frame-007): Feet height differs across frames. Fine for jumps; check this frame for walk/idle loops.

The dotted line is the foot line shared by every frame (shown at 4×). The included 26 frames, left unshifted, were at most 2px. When the feet leave the ground, as in a jump, drift is normal.

07Count stray pixelsHow many single pixels touch nothing, and which frame has the most

What it does

It counts pixels that touch nothing above, below, left, right, or on a diagonal. Those leftover specks from scaling or reducing colors are a useful thing to look for.

How to use it

It counts even if you set nothing. When it finds any, it also names the frame with the most. To remove them, use the Pixel Editor in the web app.

What you get

The 26 included frames, converted at 48px tall and 16 colors:

Stray pixels: 1
- stray-pixels (frame-023): Isolated single pixels. Remove them in the Pixel Editor if unwanted.

The same 26 frames, converted at the automatic size with no color reduction, had 0.

Into your game

Put it in your game, and see it on screen

08Atlas JSON (spritesheet.json)A coordinate table for the sheet that Phaser and PixiJS read as is

What it does

A table of where each frame sits on the sprite sheet. It uses the common TexturePacker format (JSON Hash), so Phaser and PixiJS load it as is.

How to use it (Phaser 3)

this.load.atlas('hero', 'spritesheet.png', 'spritesheet.json');
this.anims.create({
  key: 'walk',
  frames: this.anims.generateFrameNames('hero', { prefix: 'frame-', start: 0, end: 25, zeroPad: 3 }),
  frameRate: 24, repeat: -1,
});
this.add.sprite(400, 300, 'hero').setOrigin(0.5714, 1).play('walk');

Set pixelArt: true in the game config and the pixels stay sharp. For PixiJS, use Assets.load('spritesheet.json').

What you get

A walk animation converted at 48px tall
These 26 frames walk as is with the code above (shown at 4×).
"frame-000": {
  "frame": { "x": 0, "y": 0, "w": 28, "h": 48 },
  "pivot": { "x": 0.5714, "y": 1 },
  "duration": 42 }
09What the Studio showsFoot drift and atlas JSON in the web app too

What it does

The Studio in the web app has these features too. After a conversion, “foot drift” shows on the right of the result band. The export row has a new “atlas JSON” button.

How to use it

Just convert in the Studio. Hover the right side of the band to see the pivot numbers.

What you get

The Studio. The source illustration is on the left and the pixel-art result is on the right. The right side of the band below reads “No color reduction · foot drift 2px”.
“Foot drift 2px” on the right of the result band.
The export row. Buttons for PNG, sheet, atlas JSON, APNG, GIF, All (ZIP), and Pixel Editor.
“Atlas JSON” in the export row. It is included in All (ZIP) too.
10Terms of useExported files are OK for commercial use, and no credit is required
  • Pixel Motion Studio places no limits on how you use what you export (PNG, sheet, JSON, APNG, GIF, and ZIP). Use it in a game or in something you sell.
  • For the art you put in (your own, assets you may use, or an image generator’s terms), follow its own terms.
  • Commercial use is OK. No credit is required.
  • The web app, the CLI, and MCP are free. You can edit the CLI, and you can build it into your own tools.
  • Please don’t distribute or sell the CLI files themselves. To introduce the tool, link to the download page.

Full terms of use