Render surface maps directly and preserve their quality

This commit is contained in:
2026-10-05 14:16:39 +05:00
parent c5368fa8cc
commit 8b31891776
11 changed files with 533 additions and 11 deletions

View File

@@ -193,7 +193,7 @@ async function processJob(job: {
await sharp(await readFile(`${directory}/raw/map.png`), {
limitInputPixels: 16777216,
})
.webp({ quality: 90 })
.webp({ lossless: true })
.toFile(`${output}/map.webp`);
let processedFaces = 0;
for (const point of manifest.availableViewpoints ?? manifest.viewpoints) {