From f7e2388017d54659a9cd27d3b04ac74c5c9933a1 Mon Sep 17 00:00:00 2001 From: Djorkaeff Alexandre Date: Fri, 30 Oct 2020 12:54:44 -0300 Subject: [PATCH] [FIX] iOS uploads always cropping as squares (#2516) Co-authored-by: Diego Mello --- app/containers/MessageBox/index.js | 3 ++- app/views/ProfileView/index.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/containers/MessageBox/index.js b/app/containers/MessageBox/index.js index f5c16bf8..3afa274b 100644 --- a/app/containers/MessageBox/index.js +++ b/app/containers/MessageBox/index.js @@ -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 = { diff --git a/app/views/ProfileView/index.js b/app/views/ProfileView/index.js index 9cd0be09..95555c4e 100644 --- a/app/views/ProfileView/index.js +++ b/app/views/ProfileView/index.js @@ -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'),