Browse Source
fix: modify the default image type to avoid cropping images that become too large. (#4307)
Co-authored-by: YanQi <yanqirj@gmail.com>
pull/4410/head
YanQi
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
src/components/Cropper/src/Cropper.vue
|
|
@ -151,7 +151,7 @@ |
|
|
fileReader.onerror = () => { |
|
|
fileReader.onerror = () => { |
|
|
emit('cropendError'); |
|
|
emit('cropendError'); |
|
|
}; |
|
|
}; |
|
|
}, 'image/png'); |
|
|
}, 'image/jpeg'); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Get a circular picture canvas |
|
|
// Get a circular picture canvas |
|
|
|