glb -> PNG works, next is exercise for creating links to all glbs
This commit is contained in:
parent
7db6ebecac
commit
3ab8f35844
4 changed files with 69 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue