diff options
author | Volpeon <git@volpeon.ink> | 2021-10-19 12:23:47 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-10-19 12:23:47 +0200 |
commit | cdc2c9c089215876f151dbda1b18e250eed029a7 (patch) | |
tree | b83d7595c83263c62db42f5cae7fd4f5ee2b0b7f /src/index.ts | |
parent | Compress files > 9 MB (diff) | |
download | feralbot-cdc2c9c089215876f151dbda1b18e250eed029a7.tar.gz feralbot-cdc2c9c089215876f151dbda1b18e250eed029a7.tar.bz2 feralbot-cdc2c9c089215876f151dbda1b18e250eed029a7.zip |
Rescale max resolution: 1800x1800
Diffstat (limited to 'src/index.ts')
-rw-r--r-- | src/index.ts | 2 |
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 | } |