TypeScript: add missing definitions for OverlayOptions (#4048)

This commit is contained in:
ike
2024-04-02 15:42:10 +02:00
committed by GitHub
parent 02fd565476
commit 0981b24f60
2 changed files with 29 additions and 0 deletions

View File

@@ -680,3 +680,24 @@ sharp(input)
.keepIccProfile()
.withIccProfile('filename')
.withIccProfile('filename', { attach: false });
// Added missing types for OverlayOptions
// https://github.com/lovell/sharp/pull/4048
sharp(input).composite([
{
input: 'image.gif',
animated: true,
limitInputPixels: 536805378,
density: 144,
failOn: "warning"
}
])
sharp(input).composite([
{
input: 'image.png',
animated: false,
limitInputPixels: 178935126,
density: 72,
failOn: "truncated"
}
])