Use shared density for spritesheet sizing

This commit is contained in:
Meta Vens 2026-05-31 00:41:18 +01:00
commit afd1076b7b
7 changed files with 157 additions and 18 deletions

View file

@ -36,8 +36,10 @@ Do not continue implementation automatically from a rehydrate-only request.
- `source_structure` exists alongside `source_fidelity` so visible structure and lattice agreement can be inspected separately.
- Cleanup is alpha snap plus diagnostics.
- `src/repixelizer/spritesheet.py` owns spritesheet region detection and packing.
It calls `run_pipeline_rgba(...)` once per detected crop; pinned target sizes
apply per sprite, not to the whole sheet.
In automatic mode it probes crop sizes, chooses one shared
source-pixels-per-texel density for the sheet, then calls
`run_pipeline_rgba(...)` once per detected crop. Pinned target sizes apply per
sprite and bypass shared-density sizing.
## Hosted/web state