mirror of
https://github.com/jcreek/LivingDexTracker.git
synced 2026-09-16 02:22:17 +00:00
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:
@@ -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".`);
|
||||
|
||||
Reference in New Issue
Block a user