Start with highest quality compression and find a suitable size (#33)
This commit is contained in:
parent
8652b74a38
commit
838fc601c1
7 changed files with 108 additions and 48 deletions
|
@ -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)
|
||||
})
|
||||
},
|
||||
|
|
|
@ -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)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue