From 4854779be4a15135cbe9e646c94c87080f0b974d Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Thu, 8 Apr 2021 22:50:50 +0200 Subject: [PATCH] Update index.mjs --- source/plugins/screenshot/index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/plugins/screenshot/index.mjs b/source/plugins/screenshot/index.mjs index 1dc3d904..32b9228e 100644 --- a/source/plugins/screenshot/index.mjs +++ b/source/plugins/screenshot/index.mjs @@ -27,7 +27,7 @@ return {x, y, width, height} }, selector) const [buffer] = await imports.record({page, ...clip, frames:1, background}) - const screenshot = await (await imports.jimp.read(Buffer.from(buffer.split(",").pop(), "base64"))).resize(454, imports.jimp.AUTO) + const screenshot = await (await imports.jimp.read(Buffer.from(buffer.split(",").pop(), "base64"))).resize(Math.min(454, clip.width), imports.jimp.AUTO) await browser.close() //Results