summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2021-10-19 12:23:47 +0200
committerVolpeon <git@volpeon.ink>2021-10-19 12:23:47 +0200
commitcdc2c9c089215876f151dbda1b18e250eed029a7 (patch)
treeb83d7595c83263c62db42f5cae7fd4f5ee2b0b7f
parentCompress files > 9 MB (diff)
downloadferalbot-cdc2c9c089215876f151dbda1b18e250eed029a7.tar.gz
feralbot-cdc2c9c089215876f151dbda1b18e250eed029a7.tar.bz2
feralbot-cdc2c9c089215876f151dbda1b18e250eed029a7.zip
Rescale max resolution: 1800x1800
-rw-r--r--src/index.ts2
1 files changed, 1 insertions, 1 deletions
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) {
51 console.log(`Compressing...`); 51 console.log(`Compressing...`);
52 52
53 file = await Sharp(file) 53 file = await Sharp(file)
54 .resize(1000, 1000, { fit: "inside", withoutEnlargement: true }) 54 .resize(1800, 1800, { fit: "inside", withoutEnlargement: true })
55 .jpeg({ quality: 80, mozjpeg: true }) 55 .jpeg({ quality: 80, mozjpeg: true })
56 .toBuffer(); 56 .toBuffer();
57 } 57 }