From 53443783330159d1461a78cc59dc00655fd35ecb Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Thu, 17 Dec 2020 11:56:38 +0100 Subject: [PATCH] Crop editor: interpret 'cs' as centre-sliced crop. At some point, I started using 'cs' instead of 'cc'. Let's just support both. --- public/js/crop_editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/crop_editor.js b/public/js/crop_editor.js index 5ddd64ac..a86a554d 100644 --- a/public/js/crop_editor.js +++ b/public/js/crop_editor.js @@ -100,7 +100,7 @@ class CropEditor { let sourceAspectRatio = source.naturalWidth / source.naturalHeight; // Cropping from the centre? - if (cropMethod === "c") { + if (cropMethod === "c" || cropMethod === "s") { // Crop vertically from the centre, using the entire width. if (sourceAspectRatio <= cropAspectRatio) { this.crop_width.value = source.naturalWidth;