Skip to content

Generate clean 2D game sprites & animation atlases — component-row pipeline: state rows, alpha cleanup, frame extraction, runtime atlases. Codex/Claude skill.

Merge origin/main (cd00950, 2.45.1) into main: the release carries the UTF-8 output fix as unreleased

Soohong Kimed312de02540
diff --cc CHANGELOG.md
index 575ab57,67bef85..6b697e5
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -2,10 -2,13 +2,17 @@@
All notable public changes to `sprite-gen` are recorded here. Versions track the `version:` field in `SKILL.md` and `pyproject.toml`.
+## Unreleased
+
+- **Fix: every command prints on a Windows console or pipe in a legacy code page.** A line a command prints can hold an em dash, Korean or a path in any script; on cp949 (Korean Windows) or cp1252 Python could not encode it, and the command died at the print after its work was done (`background-tile` on Korean Windows). Each command's entry now reopens stdout and stderr as UTF-8 where they are not already (`sprite_gen.util.console.utf8_streams`, called first by every `main()` and by `sprite-gen`); importing sprite_gen leaves a program's streams alone. Test: `tests/util/test_console.py`.
+
+ ## v2.45.1 - An eased stretch that stops the legs is refused; the loop keeps the flow repair
+
+ **Upgrading from 2.45.0: An eased stretch that puts the body off its beat is refused, its RIFE calls are still spent, and the round records its beat.** Under `video-loop --repair auto` (and `--repair on`), an eased stretch is played only where every window of the rest of the body steps, in each step, as far as it did there in the loop as played, to within a quarter of its usual step (`repair.EASE_BEAT`, 0.25); otherwise it is refused for `the body off its beat` (listed in `rejected_for`), and the loop is delivered as the flow repair left it. RIFE calls made for the retime remain spent (up to 9 calls), the eased round's record gains a `beat` field (`bound`, `off`, `off_max`), and no command-line flags or restoration schemas change: `source-restoration-v5`, repair report `schema_version` 4, comparison `schema_version` 6.
+
+ - **Fix: `video-loop --repair auto` (and `on`) no longer plays an eased stretch that stops the legs.** A frame RIFE makes is the whole picture at one time, so the times that spread a rushing tail gave the legs, the arms and the head the same times: they slowed to a stop where the tail was given its time and hurried on after (on the synthetic walkers of the tests, a leg 1.5 to 2.7 of its ordinary step off its step as filmed). The stretch is still read, made and recorded, and is played only where every window of the rest of the body steps, in each step of it, as far as it did there as the loop played, to within a quarter of its usual step (`repair.EASE_BEAT`, the round's `beat`); otherwise it is refused for `the body off its beat` and the loop keeps the flow repair, each frame made at its own time. The calls the stretch made are still spent. [loop-repair](docs/loop-repair.md) section 2, "The body's beat".
+ - **Tests** — `tests/video/test_loop_ease.py` (whatever spreads a rush, the two legs and the feet of four walkers step as filmed to within a quarter of their ordinary step, the flow repair alone as the control; the stretches 2.45.0 took — 24 frames, 16, 14, 48 on twos, mirrored, through `video-loop`, at the half-loop cap — read, made and refused for the legs' beat alone, their frames made rebuilt to show the legs stop, the loop the flow repair's; with the bound lifted, a stretch is played as made).
+
## v2.45.0 - Walk loops repaired along their flow, eased, closed from the clip's next cycle and cut two steps from their feet; RIFE runs with its augmentation; frames between kept for a later alignment; video-stop, play modes and logo
**Upgrading from 2.44.0: RIFE costs more a frame, the jump repair names its readings anew, and a default codex that cannot run asks.** Every RIFE call runs the binary's augmentation `-x -z` (`rife.TTA`), 15 to 19 times a plain call's CPU on a machine without a GPU: a caller on CPU sets `SPRITE_GEN_RIFE_TTA` (`-x`, `-z`, both, or empty for none) where it cannot afford it, and a call past 600 s is a RIFE that failed. Under `video-loop --repair auto` (and `on`) a loop may now call RIFE up to 3 times for the flow repair, up to 9 for the eased retime and, where a part on its own beat leaves the wrap open, 34 calls a frame for the overlapped wrap. `jump_repair` reports `off_max_before` / `off_max_after` in place of `score_max_before` / `score_max_after`, in the summary and in `video-set`'s item record too, and `repair.JUMP_RATIO` is gone; a walk cut two steps from its crossings records `cycle.steps` and `strip.json` `steps: 2`. A call that names no provider, where codex cannot run, exits 75 with one question unless `SPRITE_GEN_CODEX_UNAVAILABLE` or `sprite-gen defaults save --codex-unavailable` chose another provider, and `preferences.json` is written as version 2, which 2.44.0 refuses. The restoration contract is unchanged: `source-restoration-v5`, repair report `schema_version` 4, comparison `schema_version` 6.