We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
failOn: 'none'
1 parent 8ac40cd commit 4f2a913Copy full SHA for 4f2a913
backend/src/common/image.ts
@@ -27,6 +27,7 @@ let textToSvgCache: Promise<TextToSVG> | null = null
27
28
export async function generateThumbnail(filePath: string, size: number): Promise<Readable> {
29
return sharp(filePath, {
30
+ failOn: 'none',
31
sequentialRead: true, // sequential read = more efficient I/O
32
limitInputPixels: 268e6 // protects against extremely large images
33
})
0 commit comments