forked from srxl/akkoma-fe
Crop avatar image using minWidth/minHeight
This commit is contained in:
parent
a001ffecf0
commit
09949fc7ee
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue