From f2f73e414ab275d4233734b51c0773456e8ca29e Mon Sep 17 00:00:00 2001
From: Ansh <anshnanda10@gmail.com>
Date: Wed, 12 Apr 2023 18:50:49 -0700
Subject: temporary android fix for image picker issue (#466)

---
 src/lib/media/picker.tsx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'src/lib/media/picker.tsx')

diff --git a/src/lib/media/picker.tsx b/src/lib/media/picker.tsx
index 940366035..70a5d9068 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,
-- 
cgit 1.4.1

