From 4614958bccd05ae227320a89efc777f89db06f06 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 7 Nov 2024 10:57:22 -0500 Subject: [PATCH] fix: update copy to reflect real default value of 2000px for `resizeImageWidthThreshold` --- public/language/en-GB/admin/settings/uploads.json | 2 +- test/uploads.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/language/en-GB/admin/settings/uploads.json b/public/language/en-GB/admin/settings/uploads.json index 078a19ccd2..f99528e4d0 100644 --- a/public/language/en-GB/admin/settings/uploads.json +++ b/public/language/en-GB/admin/settings/uploads.json @@ -9,7 +9,7 @@ "private-extensions": "File extensions to make private", "private-uploads-extensions-help": "Enter comma-separated list of file extensions to make private here (e.g. pdf,xls,doc). An empty list means all files are private.", "resize-image-width-threshold": "Resize images if they are wider than specified width", - "resize-image-width-threshold-help": "(in pixels, default: 1520 pixels, set to 0 to disable)", + "resize-image-width-threshold-help": "(in pixels, default: 2000 pixels, set to 0 to disable)", "resize-image-width": "Resize images down to specified width", "resize-image-width-help": "(in pixels, default: 760 pixels, set to 0 to disable)", "resize-image-quality": "Quality to use when resizing images", diff --git a/test/uploads.js b/test/uploads.js index 5df32ba2fd..ff59c4c1f2 100644 --- a/test/uploads.js +++ b/test/uploads.js @@ -161,7 +161,7 @@ describe('Upload Controllers', () => { assert(body.response.images[0].url); assert(body.response.images[0].url.match(/\/assets\/uploads\/files\/\d+-test-resized\.png/)); meta.config.resizeImageWidth = oldValue; - meta.config.resizeImageWidthThreshold = 1520; + meta.config.resizeImageWidthThreshold = 2000; }); it('should upload a file to a post', async () => {