diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-12-26 17:41:12 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-12-26 17:41:12 -0600 |
commit | cc63660982199a989859d3b5328ba43a4edec755 (patch) | |
tree | 25f6c54bfeca218e4e4e52bb0a252e1e501048bb /src | |
parent | 838fc601c1f89f028862212d169aebe4163c8672 (diff) | |
download | voidsky-cc63660982199a989859d3b5328ba43a4edec755.tar.zst |
Increase image resolutions
Diffstat (limited to 'src')
-rw-r--r-- | src/view/com/composer/PhotoCarouselPicker.tsx | 4 | ||||
-rw-r--r-- | src/view/com/util/UserAvatar.tsx | 8 | ||||
-rw-r--r-- | src/view/com/util/UserBanner.tsx | 16 |
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, |