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.
1 parent 9e9d8f1 commit 91b5c2bCopy full SHA for 91b5c2b
scripts/make-thumbnail.ts
@@ -4,7 +4,7 @@ import { homedir } from 'os';
4
import sharp from 'sharp';
5
6
const makeThumbnail = async (image: Buffer): Promise<Buffer> => {
7
- const img = sharp(image, { limitInputPixels: 1024000000 });
+ const img = sharp(image, { limitInputPixels: 2048000000 });
8
const metadata = await img.metadata();
9
const width = Math.floor((metadata.width! * 2) / 3);
10
const height = Math.floor((metadata.height! * 2) / 3);
0 commit comments