feat: image compression w/ sharp

This commit is contained in:
Face 2025-06-14 19:06:22 +06:00
parent 7b11266f72
commit 861bb01a31
7 changed files with 1626 additions and 52 deletions

View file

@ -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) {