Using media-thumbnail , you can easily create thumbnails from your videos. The module basically wraps the functionality of ffmpeg thumbnails.
const mt = require('media-thumbnail') mt.forVideo( './files/mappu.mp4', './thumbs/mappu.png', { width: 200 }) .then(() => console.log('Success'), err => console.error(err))
You can also create thumbnails from your images using this package.
source share