From 7272f47485259b16120009b30aba171b44c87a1f Mon Sep 17 00:00:00 2001 From: Carsten Pfeiffer Date: Fri, 17 Nov 2017 15:25:45 +0100 Subject: [PATCH] Request image quality 1 (=100%) to avoid scaling (and failing with OOME) (#1157) (#1169) --- app/components/post_textbox/components/attachment_button.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/post_textbox/components/attachment_button.js b/app/components/post_textbox/components/attachment_button.js index 107e709a2..b8ae1f469 100644 --- a/app/components/post_textbox/components/attachment_button.js +++ b/app/components/post_textbox/components/attachment_button.js @@ -23,7 +23,7 @@ class AttachmentButton extends PureComponent { attachFileFromCamera = () => { const {formatMessage} = this.props.intl; const options = { - quality: 0.7, + quality: 1.0, noData: true, storageOptions: { cameraRoll: true, @@ -58,7 +58,7 @@ class AttachmentButton extends PureComponent { attachFileFromLibrary = () => { const {formatMessage} = this.props.intl; const options = { - quality: 0.7, + quality: 1.0, noData: true, permissionDenied: { title: formatMessage({ @@ -93,7 +93,7 @@ class AttachmentButton extends PureComponent { attachVideoFromLibraryAndroid = () => { const {formatMessage} = this.props.intl; const options = { - quality: 0.7, + quality: 1.0, mediaType: 'video', noData: true, permissionDenied: {