Skip to content

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

JavaScript

Update cli/src/image_data.js

Surmafa5bd3d1c648
diff --git a/cli/src/image_data.js b/cli/src/image_data.js
index 90517ea3..5ac9617d 100644
--- a/cli/src/image_data.js
+++ b/cli/src/image_data.js
@@ -5,7 +5,7 @@ export default class ImageData {
// been corrupted.
// FIXME: This is bad because it’s overhead that we should only need
// to pay for Rust, not for C++.
- this.data = new Uint8ClampedArray(data);
+ this.data = data;
this.width = width;
this.height = height;
}