Skip to content

Commit 91b5c2b

Browse files
committed
#3110 Increase sharp pixels limits
1 parent 9e9d8f1 commit 91b5c2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/make-thumbnail.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { homedir } from 'os';
44
import sharp from 'sharp';
55

66
const makeThumbnail = async (image: Buffer): Promise<Buffer> => {
7-
const img = sharp(image, { limitInputPixels: 1024000000 });
7+
const img = sharp(image, { limitInputPixels: 2048000000 });
88
const metadata = await img.metadata();
99
const width = Math.floor((metadata.width! * 2) / 3);
1010
const height = Math.floor((metadata.height! * 2) / 3);

0 commit comments

Comments
 (0)