diff --git a/src/lib/media/picker.tsx b/src/lib/media/picker.tsx index 94036603..70a5d906 100644 --- a/src/lib/media/picker.tsx +++ b/src/lib/media/picker.tsx @@ -32,6 +32,8 @@ export async function openPicker( mediaType, multiple: opts.multiple, maxFiles: opts.maxFiles, + forceJpg: true, // ios only + compressImageQuality: 0.8, }) const toMedia = (item: ImageOrVideo) => ({ mediaType, @@ -60,7 +62,7 @@ export async function openCamera( cropperCircleOverlay: opts.cropperCircleOverlay, cropping: true, forceJpg: true, // ios only - compressImageQuality: 1.0, + compressImageQuality: 0.8, }) return { mediaType, @@ -85,7 +87,7 @@ export async function openCropper( freeStyleCropEnabled: opts.freeStyleCropEnabled, cropperCircleOverlay: opts.cropperCircleOverlay, forceJpg: true, // ios only - compressImageQuality: 1.0, + compressImageQuality: 0.8, }) return { mediaType, diff --git a/src/view/com/composer/photos/SelectPhotoBtn.tsx b/src/view/com/composer/photos/SelectPhotoBtn.tsx index 888118a8..c0808b85 100644 --- a/src/view/com/composer/photos/SelectPhotoBtn.tsx +++ b/src/view/com/composer/photos/SelectPhotoBtn.tsx @@ -1,5 +1,5 @@ import React from 'react' -import {TouchableOpacity} from 'react-native' +import {Platform, TouchableOpacity} from 'react-native' import { FontAwesomeIcon, FontAwesomeIconStyle, @@ -57,6 +57,10 @@ export function SelectPhotoBtn({ }) const result = [] for (const image of items) { + if (Platform.OS === 'android') { + result.push(image.path) + continue + } result.push( await cropAndCompressFlow( store,