aboutsummaryrefslogtreecommitdiff
path: root/src/api/utils/Util.js
diff options
context:
space:
mode:
authorZephyrrus <[email protected]>2020-07-01 20:13:34 +0300
committerZephyrrus <[email protected]>2020-07-01 20:13:34 +0300
commit3e1677c18a2c423f0088bf107528938d77471259 (patch)
treeabc2d2ceb1f9a1a388f30ecf0e6495835d5de6f7 /src/api/utils/Util.js
parentfeat: backend pagination (diff)
downloadhost.fuwn.me-3e1677c18a2c423f0088bf107528938d77471259.tar.xz
host.fuwn.me-3e1677c18a2c423f0088bf107528938d77471259.zip
fix: remove .bmp from the imageExtensions because sharp doesn't support it
Trying to generate a thumb would throw a not supported exception, which would crash newer node.js versions because the process (on older version, it would only throw a UnhandledPromiseRejectionWarning)
Diffstat (limited to 'src/api/utils/Util.js')
-rw-r--r--src/api/utils/Util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/utils/Util.js b/src/api/utils/Util.js
index c37297a..07c295d 100644
--- a/src/api/utils/Util.js
+++ b/src/api/utils/Util.js
@@ -21,7 +21,7 @@ const ffmpeg = require('fluent-ffmpeg');
const Zip = require('adm-zip');
const uuidv4 = require('uuid/v4');
-const imageExtensions = ['.jpg', '.jpeg', '.bmp', '.gif', '.png', '.webp'];
+const imageExtensions = ['.jpg', '.jpeg', '.gif', '.png', '.webp'];
const videoExtensions = ['.webm', '.mp4', '.wmv', '.avi', '.mov'];
const blockedExtensions = process.env.BLOCKED_EXTENSIONS.split(',');