Update cli/src/codecs.js

Co-authored-by: Ingvar Stepanyan <me@rreverser.com>
This commit is contained in:
Surma
2020-12-08 18:23:30 +00:00
committed by GitHub
parent c832287fa6
commit 83b52cabc1

View File

@@ -182,7 +182,7 @@ export const preprocessors = {
view.set(buffer, 8);
instance.exports.rotate(width, height, degrees);
return new ImageData(
new Uint8ClampedArray(view.slice(size + 8, size * 2 + 8)),
view.slice(size + 8, size * 2 + 8),
sameDimensions ? width : height,
sameDimensions ? height : width,
);