glb -> PNG works, next is exercise for creating links to all glbs

This commit is contained in:
John Poole 2026-03-04 18:39:27 -08:00
commit 3ab8f35844
4 changed files with 69 additions and 1 deletions

View file

@ -29,8 +29,13 @@ function listFiles(dir, suffix) {
}
function sanitizeBasename(p) {
// While sanitizing is generally a good idea, it causes the output to deviate
// from the input, which makes it harder to verify that the right files were
// processed. For now, just use the original filename making this step a nullity.
const b = path.basename(p);
return b.replace(/[^\w.\-]+/g, '_');
//return b.replace(/[^\w.\-]+/g, '_');
return b; // No sanitization, just the original path
}
function mimeTypeFor(p) {