Make images smaller using best-in-class codecs, right in the browser.
JavaScript
Use __filename for worker instead
Surmac9a271f57a0b
diff --git a/cli/src/index.js b/cli/src/index.jsindex c1fdd941..5a11156d 100644--- a/cli/src/index.js+++ b/cli/src/index.js@@ -109,7 +109,7 @@ async function processFiles(files) {await fsp.mkdir(program.outputDir, { recursive: true });const pool = Array.from({ length: cpus().length },- () => new Worker(process.argv[1])+ () => new Worker(__filename));let i = 0;const jobs = [];