mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Lol
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user