Request image quality 1 (=100%) to avoid scaling (and failing with OOME) (#1157) (#1169)

This commit is contained in:
Carsten Pfeiffer 2017-11-17 15:25:45 +01:00 committed by Harrison Healey
parent 7d8ffeb77a
commit 7272f47485

View file

@ -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: {