From cdc2c9c089215876f151dbda1b18e250eed029a7 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 19 Oct 2021 12:23:47 +0200 Subject: Rescale max resolution: 1800x1800 --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index e7bb328..b083604 100644 --- a/src/index.ts +++ b/src/index.ts @@ -51,7 +51,7 @@ async function handlePost(post: e621.Post) { console.log(`Compressing...`); file = await Sharp(file) - .resize(1000, 1000, { fit: "inside", withoutEnlargement: true }) + .resize(1800, 1800, { fit: "inside", withoutEnlargement: true }) .jpeg({ quality: 80, mozjpeg: true }) .toBuffer(); } -- cgit v1.2.3-70-g09d2