From 2132d58075c71bd8a445288d052cc05e321fdf24 Mon Sep 17 00:00:00 2001
From: taehoon
Date: Fri, 8 Feb 2019 22:06:02 -0500
Subject: [PATCH] Remove cropped image size restriction
---
src/components/user_settings/user_settings.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/user_settings/user_settings.js b/src/components/user_settings/user_settings.js
index 2d521c14..c1c60102 100644
--- a/src/components/user_settings/user_settings.js
+++ b/src/components/user_settings/user_settings.js
@@ -118,7 +118,7 @@ const UserSettings = {
reader.readAsDataURL(file)
},
submitAvatar (cropper) {
- const img = cropper.getCroppedCanvas({ minWidth: 150, minHeight: 150 }).toDataURL('image/jpeg')
+ const img = cropper.getCroppedCanvas().toDataURL('image/jpeg')
return this.$store.state.api.backendInteractor.updateAvatar({ params: { img } }).then((user) => {
if (!user.error) {
this.$store.commit('addNewUsers', [user])