Skip to content

Commit

Permalink
Merge aacf83d into 2014a63
Browse files Browse the repository at this point in the history
  • Loading branch information
philipjscott committed Sep 29, 2018
2 parents 2014a63 + aacf83d commit eee91b5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Expand Up @@ -36,6 +36,25 @@ async function run () {
run()
```

## Getting FFmpeg

For those who don't have FFmpeg installed, there's an NPM package that installs it for you: https://www.npmjs.com/package/ffmpeg-static

```js
const ffmpeg = require('ffmpeg-static')
const genThumbnail = require('simple-thumbnail')

async function download () {
await genThumbnail('https://www.w3schools.com/Html/mov_bbb.webm', 'bunny.webm', '150x?', {
path: ffmpeg.path
})

console.log('Done!')
}

download()
```

## API

#### genThumbnail(input, output, size, [config])
Expand Down

0 comments on commit eee91b5

Please sign in to comment.