Skip to content

Commit

Permalink
No need for Buffer hinting
Browse files Browse the repository at this point in the history
  • Loading branch information
joehoyle committed Sep 21, 2023
1 parent ed4d6ef commit ae5bed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export async function resizeBuffer(
buffer: Buffer | Uint8Array,
args: Args
): Promise<ResizeBufferResult> {
const image = sharp( buffer as Buffer, {
const image = sharp( buffer, {
failOnError: false,
animated: true,
} ).withMetadata();
Expand Down

0 comments on commit ae5bed3

Please sign in to comment.