We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 797a3bb + 0558998 commit 9830f69Copy full SHA for 9830f69
source/new-image-handler/src/processor/image/watermark.ts
@@ -527,8 +527,7 @@ export class WatermarkAction extends BaseImageAction {
527
function withNormalSize(metadata: sharp.Metadata): sharp.Metadata {
528
const o = Object.assign({}, metadata);
529
if ((metadata.orientation || 0) >= 5) {
530
- o.width = o.height;
531
- o.height = o.width;
+ [o.width, o.height] = [o.height, o.width];
532
}
533
return o;
534
0 commit comments