From 84a29252d19b7096750f7b23517e733962a85d96 Mon Sep 17 00:00:00 2001 From: anarch3 Date: Fri, 18 Nov 2022 22:13:10 -0500 Subject: [PATCH] fix gif --- routes/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/index.js b/routes/index.js index 628373f..ca58de6 100644 --- a/routes/index.js +++ b/routes/index.js @@ -121,7 +121,7 @@ function convert(req, res, next) { .run(); } else if (nameAndExtension[1] == '.gif') { console.log('Converting ' + nameAndExtension[0] + nameAndExtension[1] + ' to mp4'); - ffmpeg(req.files[file].originalname) + ffmpeg('uploads/' + req.files[file].originalname) .inputFormat('gif') .outputFormat('mp4') .outputOptions([