Skip to content

Make images smaller using best-in-class codecs, right in the browser.

JavaScript

Remove old wasm files

Surmadd895f026bcd
diff --git a/codecs/.DS_Store b/codecs/.DS_Store
new file mode 100644
index 00000000..0dc4c6a9
Binary files /dev/null and b/codecs/.DS_Store differ
diff --git a/codecs/hqx/build.sh b/codecs/hqx/build.sh
index 6f62fc8a..fe163c2b 100755
--- a/codecs/hqx/build.sh
+++ b/codecs/hqx/build.sh
@@ -10,8 +10,8 @@ echo "============================================="
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-opt -Os --no-validation -o pkg/squooshhqx_bg.wasm pkg/squooshhqx_bg.wasm
rm 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/pkg/squoosh_hqx.d.ts b/codecs/hqx/pkg/squoosh_hqx.d.ts
deleted file mode 100644
index 8d8f5f2e..00000000
--- a/codecs/hqx/pkg/squoosh_hqx.d.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-/**
-* @param {Uint32Array} input_image
-* @param {number} input_width
-* @param {number} input_height
-* @param {number} factor
-* @returns {Uint32Array}
-*/
-export function resize(input_image: Uint32Array, input_width: number, input_height: number, factor: number): Uint32Array;
diff --git a/codecs/hqx/pkg/squoosh_hqx.js b/codecs/hqx/pkg/squoosh_hqx.js
deleted file mode 100644
index 7e20704e..00000000
--- a/codecs/hqx/pkg/squoosh_hqx.js
+++ /dev/null
@@ -1,2 +0,0 @@
-import * as wasm from "./squoosh_hqx_bg.wasm";
-export * from "./squoosh_hqx_bg.js";
\ No newline at end of file
diff --git a/codecs/hqx/pkg/squoosh_hqx_bg.d.ts b/codecs/hqx/pkg/squoosh_hqx_bg.d.ts
deleted file mode 100644
index 9cb7574d..00000000
--- a/codecs/hqx/pkg/squoosh_hqx_bg.d.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-/* tslint:disable */
-/* eslint-disable */
-export const memory: WebAssembly.Memory;
-export function resize(a: number, b: number, c: number, d: number, e: number, f: number): void;
-export function __wbindgen_malloc(a: number): number;
-export function __wbindgen_free(a: number, b: number): void;
diff --git a/codecs/hqx/pkg/squoosh_hqx_bg.wasm b/codecs/hqx/pkg/squoosh_hqx_bg.wasm
deleted file mode 100644
index 847ff141..00000000
Binary files a/codecs/hqx/pkg/squoosh_hqx_bg.wasm and /dev/null differ
diff --git a/codecs/hqx/pkg/squoosh_hqx_bg.js b/codecs/hqx/pkg/squooshhqx_bg.js
similarity index 96%
rename from codecs/hqx/pkg/squoosh_hqx_bg.js
rename to codecs/hqx/pkg/squooshhqx_bg.js
index c2201da3..d3f586a6 100644
--- a/codecs/hqx/pkg/squoosh_hqx_bg.js
+++ b/codecs/hqx/pkg/squooshhqx_bg.js
@@ -1,4 +1,4 @@
-import * as wasm from './squoosh_hqx_bg.wasm';
+import * as wasm from './squooshhqx_bg.wasm';
let cachegetUint32Memory0 = null;
function getUint32Memory0() {
diff --git a/codecs/oxipng/.DS_Store b/codecs/oxipng/.DS_Store
new file mode 100644
index 00000000..069d0f12
Binary files /dev/null and b/codecs/oxipng/.DS_Store differ