diff --git a/core/server/web/api/middleware/normalize-image.js b/core/server/web/api/middleware/normalize-image.js index f090dcd2c2..b0747391aa 100644 --- a/core/server/web/api/middleware/normalize-image.js +++ b/core/server/web/api/middleware/normalize-image.js @@ -18,7 +18,7 @@ module.exports = function normalize(req, res, next) { in: originalPath, out, ext: req.file.ext, - width: 2000 + width: config.get('imageOptimization:defaultMaxWidth') }, imageOptimizationOptions); imageTransform.resizeFromPath(options) diff --git a/core/shared/config/overrides.json b/core/shared/config/overrides.json index 7385e539fb..51b639309c 100644 --- a/core/shared/config/overrides.json +++ b/core/shared/config/overrides.json @@ -77,6 +77,7 @@ } }, "imageOptimization": { + "defaultMaxWidth": 2000, "contentImageSizes": { "w600": {"width": 600}, "w1000": {"width": 1000},