Make images smaller using best-in-class codecs, right in the browser.
JavaScript
Fixup HQX build
Ingvar Stepanyan9c0a375f01c0
diff --git a/codecs/.DS_Store b/codecs/.DS_Storedeleted file mode 100644index 0dc4c6a9..00000000Binary files a/codecs/.DS_Store and /dev/null differdiff --git a/codecs/hqx/.gitignore b/codecs/hqx/.gitignoreindex 53f30e50..ea8c4bf7 100644--- a/codecs/hqx/.gitignore+++ b/codecs/hqx/.gitignore@@ -1,5 +1 @@-**/*.rs.bk-target-Cargo.lock-bin/-pkg/README.md+/targetdiff --git a/codecs/hqx/Dockerfile b/codecs/hqx/Dockerfileindex c568a09f..1d1bf545 100644--- a/codecs/hqx/Dockerfile+++ b/codecs/hqx/Dockerfile@@ -7,8 +7,5 @@ RUN curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | shRUN mkdir /opt/binaryen && \curl -L https://github.com/WebAssembly/binaryen/releases/download/1.38.32/binaryen-1.38.32-x86-linux.tar.gz | tar -xzf - -C /opt/binaryen --strip 1-RUN mkdir /opt/wabt && \- curl -L https://github.com/WebAssembly/wabt/releases/download/1.0.11/wabt-1.0.11-linux.tar.gz | tar -xzf - -C /opt/wabt --strip 1--ENV PATH="/opt/binaryen:/opt/wabt:${PATH}"+ENV PATH="/opt/binaryen:${PATH}"WORKDIR /srcdiff --git a/codecs/hqx/build.sh b/codecs/hqx/build.shindex fe163c2b..0820d1a9 100755--- a/codecs/hqx/build.sh+++ b/codecs/hqx/build.sh@@ -6,12 +6,8 @@ echo "============================================="echo "Compiling wasm"echo "============================================="(- wasm-pack build- wasm-strip pkg/squooshhqx_bg.wasm- echo "Optimising Wasm so it doesn't break Chrome (this takes like 10-15mins. get a cup of tea)"- echo "Once https://crbug.com/974804 is fixed, we can remove this step"+ wasm-pack build -- --verbose --lockedrm pkg/.gitignore- wasm-opt -Os --no-validation -o pkg/squooshhqx_bg.wasm pkg/squooshhqx_bg.wasm)echo "============================================="echo "Compiling wasm done"diff --git a/codecs/hqx/package.json b/codecs/hqx/package.jsonindex 9c50eb01..61f6193e 100644--- a/codecs/hqx/package.json+++ b/codecs/hqx/package.json@@ -1,7 +1,7 @@{"name": "hqx","scripts": {- "build:image": "docker build -t squoosh-hqx .",+ "build:image": "docker build -t squoosh-hqx - < Dockerfile","build": "docker run --rm -v $(pwd):/src squoosh-hqx ./build.sh"}}diff --git a/codecs/hqx/pkg/squooshhqx_bg.wasm b/codecs/hqx/pkg/squooshhqx_bg.wasmindex 141692d2..2213c7e9 100644Binary files a/codecs/hqx/pkg/squooshhqx_bg.wasm and b/codecs/hqx/pkg/squooshhqx_bg.wasm differdiff --git a/codecs/oxipng/.DS_Store b/codecs/oxipng/.DS_Storedeleted file mode 100644index 069d0f12..00000000Binary files a/codecs/oxipng/.DS_Store and /dev/null differ