Skip to content

Commit

Permalink
convert GIF to buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
Chetan Padia committed Oct 10, 2024
1 parent f3aab26 commit 169b1dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const historyGif = functions
maxFrameDelay: 500,
scale: 1,
});
response.type("image/gif").end(imageData, "binary");
response.type("image/gif").end(Buffer.from(imageData), "binary");
} catch (error) {
response.status(500).send(error);
}
Expand Down

0 comments on commit 169b1dd

Please sign in to comment.