mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Add autoOrient operation and constructor option #4144
This commit is contained in:
committed by
Lovell Fuller
parent
b7ff2645c4
commit
14c83e1f4c
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user