gif

command module
v0.0.0-...-2d9180c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 1 Imported by: 0

README

gif

go reference

🏞 The simplest way to create gif from video

Install

Install ffmpeg before running gif.

Use precompiled versions in releases page

or

go get -u github.com/itsjimi/gif

Usage

CLI
Help
gif help
Convert
gif convert --help
gif convert my-video.mp4 my-gif.gif
gif convert my-video.mp4 my-gif.gif --fps 60 --scale 1280
gif convert ./folder ./another-folder --crop "1280:720:30:60"
Code
Convert from folder
package main

import (
  "fmt"
  "github.com/ItsJimi/gif/pkg/convert"
)

func main() {
  options := convert.Options{
    FPS:   30,
    Scale: -1,
    Crop:  "",
  }

  err := convert.FromFolder("./videos", "./gifs", options)
  if err != nil {
    fmt.Println(err)
  }
}

Contribute

Feel free to fork and make pull requests

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL