diff options
Diffstat (limited to 'src/services')
| -rw-r--r-- | src/services/jobs.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/jobs.ts b/src/services/jobs.ts index 878593b..5ecae66 100644 --- a/src/services/jobs.ts +++ b/src/services/jobs.ts | |||
| @@ -38,7 +38,7 @@ async function handlePost(post: e621.Post) { | |||
| 38 | const width = dims.width ?? 0; | 38 | const width = dims.width ?? 0; |
| 39 | const height = dims.height ?? 0; | 39 | const height = dims.height ?? 0; |
| 40 | 40 | ||
| 41 | if (Buffer.byteLength(file) > 1024 * 1024 * 9 || width > 2000 || height > 2000) { | 41 | if (Buffer.byteLength(file) > 1024 * 1024 * 9 || width > 2000 || height > 2000) { |
| 42 | console.log(`Compressing...`); | 42 | console.log(`Compressing...`); |
| 43 | 43 | ||
| 44 | file = await Sharp(file) | 44 | file = await Sharp(file) |
