Remove cropped image size restriction

This commit is contained in:
taehoon 2019-02-08 22:06:02 -05:00
parent b6d197ce1d
commit 2132d58075
1 changed files with 1 additions and 1 deletions

View File

@ -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])