More Types, Fixed isImageBlank

This commit is contained in:
Felix Kaspar
2023-11-16 01:56:17 +01:00
parent 8f1f64f6c0
commit 921a8c431c
4 changed files with 13 additions and 9 deletions

View File

@@ -74,12 +74,12 @@ export async function oneToOne(wasmArray, snapshot) {
}
console.log("Nuping Done");
/* TODO:
* Make this more elegant, this waits for the write to finish.
* Maybe replace wasmfs with https://github.com/streamich/memfs
*/
await checkExistsWithTimeout("/output.pdf", 1000);
console.log("Write started...");
// TODO: Make this more elegant, this waits for the write to finish.
// Maybe replace wasmfs with https://github.com/streamich/memfs
let fileSize;
while (true) {
fileSize = fs.statSync("/output.pdf").size;