diff --git a/backend/src/plugins/Utility/commands/JumboCmd.ts b/backend/src/plugins/Utility/commands/JumboCmd.ts index b688b686..c35e1367 100644 --- a/backend/src/plugins/Utility/commands/JumboCmd.ts +++ b/backend/src/plugins/Utility/commands/JumboCmd.ts @@ -15,16 +15,13 @@ async function getBufferFromUrl(url: string): Promise { } function bufferToPhotonImage(input: Buffer): photon.PhotonImage { - const base64 = input - .toString("base64") - .replace(/^data:image\/\w+;base64,/, ""); + const base64 = input.toString("base64").replace(/^data:image\/\w+;base64,/, ""); return photon.PhotonImage.new_from_base64(base64); } function photonImageToBuffer(image: photon.PhotonImage): Buffer { - const base64 = image.get_base64() - .replace(/^data:image\/\w+;base64,/, ""); + const base64 = image.get_base64().replace(/^data:image\/\w+;base64,/, ""); return Buffer.from(base64, "base64"); }