Gifter is a gif renderer running in the terminal. It takes a gif file as input and plays it directly in the terminal window. It’s fully customziable by the supported command flags. Gifter is build on top of termbox-go.
go get github.com/esimov/gifter
The terminal must have xterm-256color mode enabled.
You can run the code by the following command:
go run sysioctl.go terminal.go image.go main.go <gif file>.
But the more elegant and simpler way is to generate the binary file using go install. After this you can run the code as:
gifter <gif file>
To terminate the gif animation press <ESC>, CTRL-C, CTRL-D or q key. You can even define the loop count in the loop parameter as -loop=<count>, the animation stopping after the provided iteration count.
Type gifter --help for the supported commands:
Usage of commands:
Used unicode character as cell block (default "▄")
Loop count (default 18446744073709551615)
Frame rates (default 120)
Create a new GIF file with the background color removed (default "output.gif")
Remove GIF background color
Note: there is a flickering issue playing non transparent background gif images. For this reason the -rb flag is included, which generates a new gif image with the most dominant color removed (which in most cases is the background color). But for the best visual experience it’s advised to use gif files with transparent background.
This software is distributed under the MIT license found in the LICENSE file.