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 41bf8e15cd
commit de65d9198a
7 changed files with 108 additions and 48 deletions
+2 -2
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)
})
},
+2 -2
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)
})