feat: image compression w/ sharp
This commit is contained in:
parent
7b11266f72
commit
861bb01a31
7 changed files with 1626 additions and 52 deletions
|
|
@ -42,8 +42,7 @@ export const auth = betterAuth({
|
|||
s3ImageKey = await uploadProfilePicture(
|
||||
profile.sub,
|
||||
new Uint8Array(arrayBuffer),
|
||||
blob.type,
|
||||
blob.size
|
||||
blob.type || 'image/jpeg'
|
||||
);
|
||||
}
|
||||
} catch (error) {
|
||||
|
|
|
|||
Reference in a new issue