This commit is contained in:
Dragon Fire
2024-05-09 00:42:39 -04:00
parent 8e51627120
commit 09274280bc
+1
View File
@@ -33,6 +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);
vignette(ctx, data.width, data.height);
sepia(ctx, 0, 0, data.width, data.height);
grain(ctx, 0, 0, data.width, data.height);