Start with highest quality compression and find a suitable size (#33)

This commit is contained in:
Paul Frazee 2022-12-26 12:01:40 -06:00 committed by GitHub
parent 8652b74a38
commit 838fc601c1
7 changed files with 108 additions and 48 deletions

View file

@ -39,7 +39,7 @@ export function UserAvatar({
height: 400,
cropperCircleOverlay: true,
forceJpg: true, // ios only
compressImageQuality: 0.7,
compressImageQuality: 1,
}).then(onSelectNewAvatar)
},
},
@ -56,7 +56,7 @@ export function UserAvatar({
height: 400,
cropperCircleOverlay: true,
forceJpg: true, // ios only
compressImageQuality: 0.7,
compressImageQuality: 1,
}).then(onSelectNewAvatar)
})
},

View file

@ -35,7 +35,7 @@ export function UserBanner({
compressImageMaxHeight: 500,
height: 500,
forceJpg: true, // ios only
compressImageQuality: 0.4,
compressImageQuality: 1,
includeExif: true,
}).then(onSelectNewBanner)
},
@ -54,7 +54,7 @@ export function UserBanner({
compressImageMaxHeight: 500,
height: 500,
forceJpg: true, // ios only
compressImageQuality: 0.4,
compressImageQuality: 1,
includeExif: true,
}).then(onSelectNewBanner)
})