Generate clean 2D game sprites & animation atlases — component-row pipeline: state rows, alpha cleanup, frame extraction, runtime atlases. Codex/Claude skill.
release: v2.19.0 — a loop's cells are scaled without a light rim or a green tint at the edge, and front and back stills keep their view
Soohong Kim31b1a6628815
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 009173a..1efc207 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -2,7 +2,7 @@All notable public changes to `sprite-gen` are recorded here. Versions track the `version:` field in `SKILL.md` and `pyproject.toml`.-## Unreleased - Front and back stills keep their view; a loop's cells are scaled without a light rim or a green tint at the edge+## v2.19.0 - A loop's cells are scaled without a light rim or a green tint at the edge, and front and back stills keep their view- **`video-loop` scales its cells with coverage and colour taken apart** (`resize_cell`, used by `build_strip`, so the strip, the GIF, the WebP and `video-cycle-align`'s rebuild all get it). The strip used LANCZOS over premultiplied RGBA, whose negative lobes weigh the colours across an edge against each other and then divide by the edge's low coverage; on a keyed frame, whose edge holds a light rim outside a dark outline and ink with a little of the key's green, a scaled cell drew a lighter rim and greener ink than the frame had. Coverage now keeps LANCZOS's edge, held between the least and the most coverage of the source pixels the colour mixes from (no halo outside the silhouette, no hole inside it); colour is a Hamming mix of premultiplied colour, which has no negative lobe, so every pixel's colour is a mix of the colours under it. On a synthetic outlined figure (`tests/video/test_strip_resample.py`), LANCZOS left 1,462 pixels at 0.97x and 1,750 at 1.03x with a colour none of the source pixels under them had, and none are left now; the strands, 0.5-1.4 px wide, keep LANCZOS's coverage. Colour is no longer sharpened, so a 1 px line inside the body is a little softer when a cell is enlarged. A cell at its own size is copied as it is, as before. [docs/video-pipeline.md](docs/video-pipeline.md).- **A front or back still keeps its view when redrawn from another picture** (`STILL_VIEW_TEXT["front"]`, `["back"]`, read by `still_view_text`): redrawn from a side picture with the clip's one line, a front still could keep part of the picture's turn — feet frontal, head and chest turned a little toward the side the picture faces. The still sentence now says the whole body and head face the viewer squarely, the chest, hips and toes point straight at the viewer, the face is centred between both ears and it is not turned toward either side even when a reference picture shows the character from another angle; the back one says the same from behind, the face hidden and not looking back over the shoulder. It is used whatever the reference's view (a caller does not always know it). The clip's `VIEW_TEXT` is unchanged.diff --git a/SKILL.md b/SKILL.mdindex b99a815..0773d9d 100644--- a/SKILL.md+++ b/SKILL.md@@ -1,6 +1,6 @@---name: sprite-gen-version: 2.18.0+version: 2.19.0description: "Generates images and game sprites through GPT or Grok with guided provider choices, separate saved defaults, automatic cleanup and optional curation. Handles sprite requests, ordinary image generation/editing, standalone image-to-video clips (i2v, animate this still, 그록 영상, 이매진 비디오, 스틸 움직여줘, first/last frame, reference-to-video, 영상 이어붙이기, 영상 편집, extend/edit a clip), chroma removal, animation atlases, video loops, 큐레이션뷰, image candidates, 팔레트 스왑, palette swap, recolor, rig layers, engine exports, repeating backgrounds, projected shadows, motion/contact inspection and optional scene composition from existing assets."license: Apache-2.0depends_on:diff --git a/pyproject.toml b/pyproject.tomlindex 50a02db..a8e9f52 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -12,7 +12,7 @@ build-backend = "setuptools.build_meta"name = "sprite-gen"# Release discipline: keep this package metadata version synchronized with# SKILL.md's `version:` field in the same release commit.-version = "2.18.0"+version = "2.19.0"description = "Component-row pipeline for clean 2D game sprites and animation atlases"readme = "README.md"license = "Apache-2.0"