Node.js based forum software built for the modern web
Set aspect ratio to square and confine crop box to image
pichalitea808d1b4d9e1
diff --git a/public/src/client/account/edit.js b/public/src/client/account/edit.jsindex 92b9a0e61e..1239bc7074 100644--- a/public/src/client/account/edit.js+++ b/public/src/client/account/edit.js@@ -218,7 +218,10 @@ define('forum/account/edit', ['forum/account/header', 'uploader', 'translator',cropperModal.modal('show');var img = document.getElementById('cropped-image');- var cropperTool = new cropper.default(img, {});+ var cropperTool = new cropper.default(img, {+ aspectRatio: 1 / 1,+ viewMode: 1+ });cropperModal.find('.crop-btn').on('click', function () {$(this).addClass('disabled');