From 743a7e00b4b0c88489bbc98dc88ca4dbfe060b33 Mon Sep 17 00:00:00 2001 From: Accalia de Elementia Date: Mon, 6 Mar 2017 13:14:15 +0000 Subject: [PATCH] fix: auto cropper on image upload selects maximum image area by default --- public/src/modules/pictureCropper.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/src/modules/pictureCropper.js b/public/src/modules/pictureCropper.js index 0ed62d3d8c..bbe0a76735 100644 --- a/public/src/modules/pictureCropper.js +++ b/public/src/modules/pictureCropper.js @@ -42,6 +42,7 @@ define('pictureCropper', ['translator', 'cropper'], function (translator, croppe var img = document.getElementById('cropped-image'); var cropperTool = new cropper.default(img, { aspectRatio: data.aspectRatio, + autoCropArea: 1, viewMode: 1, cropmove: function () { if (data.restrictImageDimension) {