about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-12-26 17:41:12 -0600
committerPaul Frazee <pfrazee@gmail.com>2022-12-26 17:41:12 -0600
commitcc63660982199a989859d3b5328ba43a4edec755 (patch)
tree25f6c54bfeca218e4e4e52bb0a252e1e501048bb /src
parent838fc601c1f89f028862212d169aebe4163c8672 (diff)
downloadvoidsky-cc63660982199a989859d3b5328ba43a4edec755.tar.zst
Increase image resolutions
Diffstat (limited to 'src')
-rw-r--r--src/view/com/composer/PhotoCarouselPicker.tsx4
-rw-r--r--src/view/com/util/UserAvatar.tsx8
-rw-r--r--src/view/com/util/UserBanner.tsx16
3 files changed, 14 insertions, 14 deletions
diff --git a/src/view/com/composer/PhotoCarouselPicker.tsx b/src/view/com/composer/PhotoCarouselPicker.tsx
index 2afe2e5a5..7f2c4e52f 100644
--- a/src/view/com/composer/PhotoCarouselPicker.tsx
+++ b/src/view/com/composer/PhotoCarouselPicker.tsx
@@ -10,8 +10,8 @@ import {
 import {compressIfNeeded} from '../../../lib/images'
 
 const IMAGE_PARAMS = {
-  width: 500,
-  height: 500,
+  width: 1000,
+  height: 1000,
   freeStyleCropEnabled: true,
   forceJpg: true, // ios only
   compressImageQuality: 1.0,
diff --git a/src/view/com/util/UserAvatar.tsx b/src/view/com/util/UserAvatar.tsx
index 67f039551..6434bb287 100644
--- a/src/view/com/util/UserAvatar.tsx
+++ b/src/view/com/util/UserAvatar.tsx
@@ -35,8 +35,8 @@ export function UserAvatar({
           openCamera({
             mediaType: 'photo',
             cropping: true,
-            width: 400,
-            height: 400,
+            width: 1000,
+            height: 1000,
             cropperCircleOverlay: true,
             forceJpg: true, // ios only
             compressImageQuality: 1,
@@ -52,8 +52,8 @@ export function UserAvatar({
             await openCropper({
               mediaType: 'photo',
               path: item.path,
-              width: 400,
-              height: 400,
+              width: 1000,
+              height: 1000,
               cropperCircleOverlay: true,
               forceJpg: true, // ios only
               compressImageQuality: 1,
diff --git a/src/view/com/util/UserBanner.tsx b/src/view/com/util/UserBanner.tsx
index 5137e19ca..982e053c3 100644
--- a/src/view/com/util/UserBanner.tsx
+++ b/src/view/com/util/UserBanner.tsx
@@ -30,10 +30,10 @@ export function UserBanner({
           openCamera({
             mediaType: 'photo',
             cropping: true,
-            compressImageMaxWidth: 1500,
-            width: 1500,
-            compressImageMaxHeight: 500,
-            height: 500,
+            compressImageMaxWidth: 3000,
+            width: 3000,
+            compressImageMaxHeight: 1000,
+            height: 1000,
             forceJpg: true, // ios only
             compressImageQuality: 1,
             includeExif: true,
@@ -49,10 +49,10 @@ export function UserBanner({
             await openCropper({
               mediaType: 'photo',
               path: item.path,
-              compressImageMaxWidth: 1500,
-              width: 1500,
-              compressImageMaxHeight: 500,
-              height: 500,
+              compressImageMaxWidth: 3000,
+              width: 3000,
+              compressImageMaxHeight: 1000,
+              height: 1000,
               forceJpg: true, // ios only
               compressImageQuality: 1,
               includeExif: true,