Generate clean 2D game sprites & animation atlases — component-row pipeline: state rows, alpha cleanup, frame extraction, runtime atlases. Codex/Claude skill.
release: v2.20.0
Soohong Kim2453fa86597b
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex b774916..6a8fa3b 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 - A keyed picture is scaled without a light rim or a green tint at the edge wherever the engine scales one: a row frame, a sliced sheet, a scene layer+## v2.20.0 - A keyed picture is scaled without a light rim or a green tint at the edge wherever the engine scales one: a row frame, a sliced sheet, a scene layer- **The places that scaled a keyed picture with LANCZOS now use the loop's resample** (`resize_cell`, now in `sprite_gen/util/resample.py`): a row frame shrunk into its cell (`extract`, `fit.resample: lanczos`, the default), the plain and original-quality twins beside a pixel-unfake frame (`.plain.png`, `orig/`), a sliced sheet's figures (`slice-sheet`) and a scene's layers (`scene-render`). Each used LANCZOS over premultiplied RGBA and drew the same lighter rim and key tint at the edge as the loop's strip did before 2.19.0. On the synthetic outlined figure (`tests/keyed_figure.py`), LANCZOS left 137 pixels at 0.2x, 543 at 0.5x, 978 at 0.75x and 7,315 at 2x with a colour none of the source pixels under them had; none are left at any of them. `fit.resample: lanczos` keeps its name and stays the smooth shrink (coverage is still LANCZOS); `nearest`, `kcentroid` and pixel-unfake frames are unchanged, and a picture at its own size is copied as it is. Colour is no longer sharpened, so a scaled scene layer with no transparency (a painted background) is a little softer than LANCZOS drew it. A tween's scale (`normalize_tween_scale`) is left on LANCZOS: it scales an opaque canvas before the key is removed, where there is no coverage to divide by. [docs/video-pipeline.md](docs/video-pipeline.md), [docs/pixel-unfake.md](docs/pixel-unfake.md), [docs/sheet-slicing.md](docs/sheet-slicing.md), [docs/scene.md](docs/scene.md).diff --git a/SKILL.md b/SKILL.mdindex 0773d9d..9a6d24f 100644--- a/SKILL.md+++ b/SKILL.md@@ -1,6 +1,6 @@---name: sprite-gen-version: 2.19.0+version: 2.20.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 a8e9f52..518bfc6 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.19.0"+version = "2.20.0"description = "Component-row pipeline for clean 2D game sprites and animation atlases"readme = "README.md"license = "Apache-2.0"