Skip to content

Commit

Permalink
FIX: sharp.simd disabled for now. @see lovell/sharp#3893 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir-Zouerami committed Dec 21, 2023
1 parent af5337f commit 9bdb37c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utility/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ export const editProfileInfo = async (
return { ok: false, level: 'AVATAR' };

try {
// TODO: SMID OFF FOR NOW. @see https://github.com/lovell/sharp/issues/3893#issuecomment-1851490893
sharp.simd(false);
const resizedAvatarBuffer = await sharp(await avatar.arrayBuffer())
.resize({ width: 512, height: 512, fit: 'cover' })
.toBuffer();
Expand Down

0 comments on commit 9bdb37c

Please sign in to comment.