aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaehoon <th.dev91@gmail.com>2019-02-08 11:01:50 -0500
committertaehoon <th.dev91@gmail.com>2019-02-15 13:34:33 -0500
commit09949fc7eea10e592339fd620d140eb92a18e28b (patch)
tree1642ef3b062e0b42186d1276458ec63b8444a7a4
parenta001ffecf0c18091d9f9b7b36b795713412c22af (diff)
Crop avatar image using minWidth/minHeight
-rw-r--r--src/components/user_settings/user_settings.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/user_settings/user_settings.js b/src/components/user_settings/user_settings.js
index b3d31d67..8987c691 100644
--- a/src/components/user_settings/user_settings.js
+++ b/src/components/user_settings/user_settings.js
@@ -119,7 +119,7 @@ const UserSettings = {
reader.readAsDataURL(file)
},
submitAvatar (cropper) {
- const img = cropper.getCroppedCanvas({ width: 150, height: 150 }).toDataURL('image/jpeg')
+ const img = cropper.getCroppedCanvas({ minWidth: 150, minHeight: 150 }).toDataURL('image/jpeg')
this.avatarUploading = true
this.$store.state.api.backendInteractor.updateAvatar({ params: { img } }).then((user) => {
if (!user.error) {