[FIX] iOS uploads always cropping as squares (#2516)

Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
Djorkaeff Alexandre 2020-10-30 12:54:44 -03:00 committed by GitHub
parent 857707fc61
commit f7e2388017
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -51,7 +51,8 @@ import { sanitizeLikeString } from '../../lib/database/utils';
const imagePickerConfig = {
cropping: true,
compressImageQuality: 0.8,
avoidEmptySpaceAroundImage: false
avoidEmptySpaceAroundImage: false,
freeStyleCropEnabled: true
};
const libraryPickerConfig = {

View File

@ -288,6 +288,7 @@ class ProfileView extends React.Component {
const options = {
cropping: true,
compressImageQuality: 0.8,
freeStyleCropEnabled: true,
cropperAvoidEmptySpaceAroundImage: false,
cropperChooseText: I18n.t('Choose'),
cropperCancelText: I18n.t('Cancel'),