Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mmahrous/thumbler

This package will extract thumbnail from video
https://github.com/mmahrous/thumbler

extract-thumbnail ffmpeg nodejs npm npm-package video

Last synced: 3 months ago
JSON representation

This package will extract thumbnail from video

Awesome Lists containing this project

README

        

# Thumbler
This package will extract thumbnail from video and images.

## Video
Specify a time that you want the thumbnail to use it.

### Example
```javascript
const Thumbler = require('thumbler');

Thumbler({
type: 'video',
input: 'input.mp4',
output: 'output.jpeg',
time: '00:00:22',
size: '300x200' // this optional if null will use the desimention of the video
}, function(err, path){
if (err) return err;
return path;
});
```
## Image
Specify a time that you want the thumbnail to use it.

### Example
```javascript
const Thumbler = require('thumbler');

Thumbler({
type: 'image',
input: 'input.jpg',
output: 'output.jpeg',
size: '300x200' // this optional if null will use the desimention of the video
}, function(err, path){
if (err) return err;
return path;
});
```
#### License
Licensed under MIT

#### Author
M. Mahrous
Feel free to contact me [M. Mahrous](mailto:[email protected]) and improve the code.