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:
parent
520062508c
commit
3e1677c18a
|
@ -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(',');
|
||||
|
||||
|
|
Loading…
Reference in New Issue