Skip to content

Commit

Permalink
feat: Revert image limits settings
Browse files Browse the repository at this point in the history
  • Loading branch information
iandebruin98 committed Oct 24, 2024
1 parent 874d443 commit 05af330
Showing 1 changed file with 9 additions and 26 deletions.
35 changes: 9 additions & 26 deletions apps/image-server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ const imageMulterConfig = {
}

cb(null, true);
},
limits: {
fileSize: 20 * 1024 * 1024, // 20MB max file size
}
}

Expand Down Expand Up @@ -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,
Expand All @@ -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/';
Expand Down

0 comments on commit 05af330

Please sign in to comment.