Increase image resolutions

zio/stable
Paul Frazee 2022-12-26 17:41:12 -06:00
parent 838fc601c1
commit cc63660982
3 changed files with 14 additions and 14 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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,