From 53553cb33018bc958bb666606399e3744900024d Mon Sep 17 00:00:00 2001 From: loicbersier Date: Thu, 27 Feb 2020 17:52:25 +0100 Subject: [PATCH] Forgot to actually use video size option --- commands/fun/audio2image.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/fun/audio2image.js b/commands/fun/audio2image.js index 32cd9ee..1a72dcc 100644 --- a/commands/fun/audio2image.js +++ b/commands/fun/audio2image.js @@ -18,7 +18,8 @@ class audio2imageCommand extends Command { { id: 'video_size', match: 'option', - flag: '--size' + flag: '--size', + default: '640x480' } ], description: { @@ -58,7 +59,7 @@ class audio2imageCommand extends Command { .input(`${os.tmpdir()}/${message.id}1.sw`) //.size('1920x1080') .inputOption('-pixel_format rgb24') - .inputOption('-video_size 640x480') + .inputOption(`-video_size ${args.video_size}`) .inputFormat('rawvideo') .frames('1') .output(`${os.tmpdir()}/a2i${message.id}.png`)