Skip to content

Commit

Permalink
alpha?
Browse files Browse the repository at this point in the history
  • Loading branch information
u1-liquid committed Dec 25, 2024
1 parent 0b82f1b commit 52269b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/core/AiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class AiService {
const sharp = await sharpBmp(path, mime);
const { data, info } = await sharp
.resize(299, 299, { fit: 'inside' })
.ensureAlpha()
.removeAlpha()
.raw({ depth: 'uchar' })
.toBuffer({ resolveWithObject: true });

Expand Down

0 comments on commit 52269b7

Please sign in to comment.