forked from external-repos/squoosh
Update cli/src/codecs.js
Co-authored-by: Ingvar Stepanyan <me@rreverser.com>
This commit is contained in:
@@ -182,7 +182,7 @@ export const preprocessors = {
|
|||||||
view.set(buffer, 8);
|
view.set(buffer, 8);
|
||||||
instance.exports.rotate(width, height, degrees);
|
instance.exports.rotate(width, height, degrees);
|
||||||
return new ImageData(
|
return new ImageData(
|
||||||
new Uint8ClampedArray(view.slice(size + 8, size * 2 + 8)),
|
view.slice(size + 8, size * 2 + 8),
|
||||||
sameDimensions ? width : height,
|
sameDimensions ? width : height,
|
||||||
sameDimensions ? height : width,
|
sameDimensions ? height : width,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user