From 05af3301e19b07250992215d6acf0bc97adc6eb8 Mon Sep 17 00:00:00 2001 From: iandebruin98 Date: Thu, 24 Oct 2024 14:43:20 +0200 Subject: [PATCH] feat: Revert image limits settings --- apps/image-server/server.js | 35 +++++++++-------------------------- 1 file changed, 9 insertions(+), 26 deletions(-) diff --git a/apps/image-server/server.js b/apps/image-server/server.js index dac0173f1..80eeba29d 100644 --- a/apps/image-server/server.js +++ b/apps/image-server/server.js @@ -19,9 +19,6 @@ const imageMulterConfig = { } cb(null, true); - }, - limits: { - fileSize: 20 * 1024 * 1024, // 20MB max file size } } @@ -50,11 +47,6 @@ const imageSteamConfig = { "cacheArtifacts": process.env.CACHE_ARTIFACTS || true }, }, - "imageLimits": { - "maxInputPixels": 100000000, - "maxWidth": 10000, - "maxHeight": 10000 - }, "throttle": { "ccProcessors": process.env.THROTTLE_CC_PROCESSORS || 4, "ccPrefetchers": process.env.THROTTLE_CC_PREFETCHER || 20, @@ -63,27 +55,18 @@ const imageSteamConfig = { log: { errors: true }, - "router": { - "originalSteps": { - "resize": { - "width": "10000", - "height": "10000", - "max": "true", - "canGrow": "true" - } + router: { + originalSteps: { + metadata: { + enabled: 'false', + }, }, - "hqOriginalSteps": { - "resize": { - "width": "10000", - "height": "10000", - "max": "true", - "canGrow": "true" - } + hqOriginalSteps: { + metadata: { + enabled: 'false', + }, }, }, - processor: { - maxSize: { width: 10000, height: 10000 }, - } }; imageMulterConfig.dest = process.env.IMAGES_DIR || 'images/';