mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-12 00:37:19 +00:00
Update cli/src/image_data.js
Co-authored-by: Ingvar Stepanyan <me@rreverser.com>
This commit is contained in:
@@ -5,7 +5,7 @@ export default class ImageData {
|
|||||||
// been corrupted.
|
// been corrupted.
|
||||||
// FIXME: This is bad because it’s overhead that we should only need
|
// FIXME: This is bad because it’s overhead that we should only need
|
||||||
// to pay for Rust, not for C++.
|
// to pay for Rust, not for C++.
|
||||||
this.data = new Uint8ClampedArray(data);
|
this.data = data;
|
||||||
this.width = width;
|
this.width = width;
|
||||||
this.height = height;
|
this.height = height;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user