Make images smaller using best-in-class codecs, right in the browser.
JavaScript
Update cli/src/image_data.js
Surma5765ea5aa441
diff --git a/cli/src/image_data.js b/cli/src/image_data.jsindex 5ac9617d..7d7736be 100644--- a/cli/src/image_data.js+++ b/cli/src/image_data.js@@ -1,10 +1,5 @@export default class ImageData {constructor(data, width, height) {- // Need to manually copy the memory as wasm-bindgen does not by default- // and by the time we get control in JS land, the memory has already- // been corrupted.- // FIXME: This is bad because it’s overhead that we should only need- // to pay for Rust, not for C++.this.data = data;this.width = width;this.height = height;