thumbler-hoss

1.1.1 • Public • Published

Thumbler

This package will extract thumbnail from video and images.

Video

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

Example

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

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 and improve the code.

Dependents (0)

Package Sidebar

Install

npm i thumbler-hoss

Weekly Downloads

1

Version

1.1.1

License

MIT

Unpacked Size

4.74 kB

Total Files

6

Last publish

Collaborators

  • hossman333