gifit

Quickly convert video to high quality GIF.

Usage no npm install needed!

<script type="module">
  import gifit from 'https://cdn.skypack.dev/gifit';
</script>

README

gifit Build Status

Quickly convert video to high quality GIF.

Install

$ npm install --save gifit

Usage

import gifit from 'gifit'

let inputPath = '/Users/joe/example.mov';
let outputPath = '/Users/joe/test.gif';

gifit({
  input: '/Users/joe/example.mov',
  output: '/Users/joe/test.gif',
})
.then(result => {
  console.log('Converted Successfully!')
})
.catch(error => {
  console.log(err)
})

API

gifit([options])

Converts a video to gif

Options

Name Type Default Description
input string N/A Path to video file you want to convert
output string N/A Path you want the gif to be placed
import gifit from 'gifit'

gifit({
  input: '/Users/joe/example.mov',
  output: '/Users/joe/test.gif',
})
.then(result => {
})
.catch(error => {
  console.log(err)
})

Test

$ npm test

Build

$ npm run build

Related

License

MIT © Joe Gesualdo