[FIX] iOS uploads always cropping as squares (#2516)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
857707fc61
commit
f7e2388017
|
@ -51,7 +51,8 @@ import { sanitizeLikeString } from '../../lib/database/utils';
|
||||||
const imagePickerConfig = {
|
const imagePickerConfig = {
|
||||||
cropping: true,
|
cropping: true,
|
||||||
compressImageQuality: 0.8,
|
compressImageQuality: 0.8,
|
||||||
avoidEmptySpaceAroundImage: false
|
avoidEmptySpaceAroundImage: false,
|
||||||
|
freeStyleCropEnabled: true
|
||||||
};
|
};
|
||||||
|
|
||||||
const libraryPickerConfig = {
|
const libraryPickerConfig = {
|
||||||
|
|
|
@ -288,6 +288,7 @@ class ProfileView extends React.Component {
|
||||||
const options = {
|
const options = {
|
||||||
cropping: true,
|
cropping: true,
|
||||||
compressImageQuality: 0.8,
|
compressImageQuality: 0.8,
|
||||||
|
freeStyleCropEnabled: true,
|
||||||
cropperAvoidEmptySpaceAroundImage: false,
|
cropperAvoidEmptySpaceAroundImage: false,
|
||||||
cropperChooseText: I18n.t('Choose'),
|
cropperChooseText: I18n.t('Choose'),
|
||||||
cropperCancelText: I18n.t('Cancel'),
|
cropperCancelText: I18n.t('Cancel'),
|
||||||
|
|
Loading…
Reference in New Issue