Add autoOrient operation and constructor option #4144

This commit is contained in:
Don Denton
2024-07-03 10:34:54 -04:00
committed by Lovell Fuller
parent b7ff2645c4
commit 14c83e1f4c
137 changed files with 428 additions and 136 deletions

View File

@@ -702,7 +702,8 @@ sharp(input).composite([
animated: true,
limitInputPixels: 536805378,
density: 144,
failOn: "warning"
failOn: "warning",
autoOrient: true
}
])
sharp(input).composite([
@@ -719,3 +720,7 @@ const colour: sharp.Colour = '#fff';
const color: sharp.Color = '#fff';
sharp({ pdfBackground: colour });
sharp({ pdfBackground: color });
sharp({ autoOrient: true });
sharp({ autoOrient: false });
sharp().autoOrient();