Supported features module
- Source:
(require("src/util/supported"))() → {Promise}
Function to check if defined features are supported.
- Source:
Returns:
promise that resolves with an object that contains supported feature flags
- Type
- Promise
Example
supported()
.then((supported) =>
console.log(supported.GM.WEBP ? 'webp is supported for gm processor' : 'webp not supported for gm processor'))
Methods
(inner) hasFFmpeg() → {Promise}
Function to check if ffmpeg/ffprobe is installed and usable
- Source:
Returns:
resolves true or false depending on the ffmpeg/ffprobe support
- Type
- Promise