makeagif

module
v0.0.0-...-9eee911 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: GPL-3.0

README

Make A GIF

Gopher GIF

Make a beautiful GIF from JPEG files !

Install

Clone the repository.

git clone https://github.com/chbes/makeagif

Build the source to get an executable.

You can choice the name of your executable, replace mag by yourname

go build -o mag cmd/main.go

Utilization

Command below create a new GIF Gopher, from all images found in the folder inputs.

You can create a GIF from JPEG or PNG images.

./mag -inFolder="inputs" -outFile="Gopher"
.
+-- Gopher.gif
+-- intputs
|   +-- IMG_001.jpeg
|   +-- IMG_002.jpeg
|   +-- IMG_003.jpeg

The flag -factory in the command below launch the factory mode. It create one new GIF from each folder found in the current folder then put them in the folder ouputs.

./mag -outFolder="ouputs" -factory

Before:

.
+-- Moon
|   +-- picture1.jpg
|   +-- picture2.jpg
+-- Sun
|   +-- IMG_001.jpeg
|   +-- IMG_002.jpeg
|   +-- IMG_003.jpeg
+-- Wouah
|   +-- IMG_100.png
|   +-- IMG_101.png

After:

.
+-- outputs
|   +-- Moon.gif
|   +-- Sun.gif
|   +-- Wouah.gif
+-- Moon
|   +-- picture1.jpg
|   +-- picture2.jpg
+-- Sun
|   +-- IMG_001.jpeg
|   +-- IMG_002.jpeg
|   +-- IMG_003.jpeg
+-- Wouah
|   +-- IMG_100.png
|   +-- IMG_101.png

User Manual

  -d int
        delay into each image, in millisecond (default 50)
  -factory
        factory mode
  -h uint
        GIF height (0 = ratio preserving)
  -inFolder string
        folder contains input images (default ".")
  -info
        get informations
  -outFile string
        new GIF name (default input folder name)
  -outFolder string
        folder contains output GIF (default input folder)
  -v
        verbose mode
  -vv
        very verbose mode
  -w uint
        GIF width (0 = ratio preserving)

Dependecies

License

This project is licensed under the GPL-3.0 License - see the LICENSE file for more details.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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