mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-05 23:30:36 +01:00
Merge pull request #5505 from AccaliaDeElementia/fix-avatar-cropper
fix: auto cropper on image upload selects maximum image area by default
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user