mirror of
https://github.com/Art-Portal/April.git
synced 2024-11-16 11:37:37 +01:00
Allow non-squared images in remix
This commit is contained in:
parent
a8cbfc050f
commit
20667f34d5
@ -8,7 +8,7 @@ module.exports = {
|
||||
await interaction.deferReply();
|
||||
const filter = interaction.options.getString('filter');
|
||||
|
||||
const canvas = Canvas.createCanvas(500, 500);
|
||||
const canvas = Canvas.createCanvas(file.width, file.height);
|
||||
const ctx = canvas.getContext('2d');
|
||||
|
||||
const image = await Canvas.loadImage(file.url);
|
||||
|
Loading…
Reference in New Issue
Block a user