Make images smaller using best-in-class codecs, right in the browser.
JavaScript
Scriptify benchmark running
Surmab49cfca39d37
diff --git a/codecs/rotate/package.json b/codecs/rotate/package.jsonindex b295b0f8..1bf9073b 100644--- a/codecs/rotate/package.json+++ b/codecs/rotate/package.json@@ -3,6 +3,9 @@"scripts": {"build:image": "docker build -t squoosh-rotate .","build": "docker run --rm -v $(pwd):/src squoosh-rotate ./build.sh",- "benchmark": "v8 --liftoff --no-wasm-tier-up --no-opt ./benchmark.js"+ "benchmark": "echo File size after gzip && npm run benchmark:filesize && echo Baseline && npm run benchmark:baseline && echo Optimizing && npm run benchmark:optimizing",+ "benchmark:baseline": "v8 --liftoff --no-wasm-tier-up --no-opt ./benchmark.js",+ "benchmark:optimizing": "v8 ./benchmark.js",+ "benchmark:filesize": "cat rotate.wasm | gzip -c9n | wc -c"}}