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)
This commit is contained in:
Zephyrrus 2020-07-01 20:13:34 +03:00
parent 520062508c
commit 3e1677c18a
1 changed files with 1 additions and 1 deletions

View File

@ -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(',');