Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
fix(image-utils): make jimp export buffers as png like sharp (#4576)
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanBacon committed Oct 27, 2022
1 parent af7119e commit 2ec59a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/image-utils/src/Image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ async function resizeAsync(imageOptions: ImageOptions): Promise<Buffer> {
await Jimp.circleAsync(jimp);
}

const imgBuffer = await jimp.getBufferAsync(jimp.getMIME());
return imgBuffer;
// Convert to png buffer
return jimp.getBufferAsync('image/png');
}
try {
let sharpBuffer = sharp(imageOptions.src)
Expand Down

0 comments on commit 2ec59a9

Please sign in to comment.