From f7e87812110c8a369f6add8624aaaf634dfbdfb5 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 9 May 2024 00:43:04 -0400 Subject: [PATCH] Fix --- commands/edit-image/old-photo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/edit-image/old-photo.js b/commands/edit-image/old-photo.js index 81496dc8..2b43d575 100644 --- a/commands/edit-image/old-photo.js +++ b/commands/edit-image/old-photo.js @@ -33,7 +33,7 @@ module.exports = class OldPhotoCommand extends Command { const data = await loadImage(body); const canvas = createCanvas(data.width, data.height); const ctx = canvas.getContext('2d'); - ctx.drawImage(data); + ctx.drawImage(data, 0, 0); vignette(ctx, data.width, data.height); sepia(ctx, 0, 0, data.width, data.height); grain(ctx, 0, 0, data.width, data.height);