Allow non-squared images in remix

This commit is contained in:
Ninjdai1 2023-09-10 09:38:10 +02:00
parent a8cbfc050f
commit 20667f34d5

View File

@ -8,7 +8,7 @@ module.exports = {
await interaction.deferReply(); await interaction.deferReply();
const filter = interaction.options.getString('filter'); 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 ctx = canvas.getContext('2d');
const image = await Canvas.loadImage(file.url); const image = await Canvas.loadImage(file.url);