Add pageHeight param to create/new for animated input #3236

This commit is contained in:
Lovell Fuller
2025-06-21 11:33:52 +01:00
parent 852c7f8663
commit e26d4e9d5b
11 changed files with 179 additions and 20 deletions

View File

@@ -418,6 +418,7 @@ sharp({
channels: 4,
height: 25000,
width: 25000,
pageHeight: 1000,
},
limitInputPixels: false,
})
@@ -734,6 +735,13 @@ sharp({ svg: { stylesheet: 'test' }});
sharp({ svg: { highBitdepth: true }});
sharp({ svg: { highBitdepth: false }});
// Raw input options
const raw: sharp.Raw = { width: 1, height: 1, channels: 3 };
sharp({ raw });
sharp({ raw: { ...raw, premultiplied: true } });
sharp({ raw: { ...raw, premultiplied: false } });
sharp({ raw: { ...raw, pageHeight: 1 } });
sharp({ autoOrient: true });
sharp({ autoOrient: false });
sharp().autoOrient();