revert(sprites): keep the original 512px sprites

The resize to 192px isn't worthwhile now that sprites are only downloaded
when viewed or saved on request, and then kept forever. Restore the
original files and the script's no-resize default, drop the detail view
size cap, and regenerate the sprite manifest with the original sizes.
This commit is contained in:
Josh Creek
2026-09-14 16:53:31 +01:00
parent 030571fd14
commit 9ddca18f54
3173 changed files with 2 additions and 11 deletions
+1 -3
View File
@@ -10,9 +10,7 @@ const outputDir =
process.env.SPRITE_OUTPUT_DIR ?? path.join(process.cwd(), 'static', 'sprites-small');
const format = (process.env.SPRITE_FORMAT ?? 'webp').toLowerCase();
const quality = Number(process.env.SPRITE_QUALITY ?? 80);
// Sprites render at 44-64px in the box grid and up to 192px in the detail view, and every byte is
// downloaded (and cached offline) per sprite, so larger sources only cost users data.
const maxSize = Number(process.env.SPRITE_MAX_SIZE ?? 192);
const maxSize = Number(process.env.SPRITE_MAX_SIZE ?? 0);
if (!['png', 'webp'].includes(format)) {
console.error(`Unsupported SPRITE_FORMAT "${format}". Use "png" or "webp".`);