Skip to content

Create gif animations from image sequences from CLI

Notifications You must be signed in to change notification settings

egor-romanov/png2gif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

png2gif

Small CLI tool to convert a sequence of .png or .jpg images to an animated.gif.

Install

Download the latest release from the releases page for your platform. You may need to make the file executable and allow your MacOS to run it. See this guide for more information.

Or build from source

Clone the repo, then run go build in the root directory.

Don't forget to add the binary to your path.

Just fork a project on replit: https://replit.com/@egor-romanov/animations

Usage

png2gif

app

You will be prompted to select a folder containing the images to generate the gif from. The images should be named in the order you want them to appear in the gif.

Example:

001.png
002.png
003.png
...

Credits

It uses bubbletea for the UI. And images4 to compare consecutive images to determine if they are the same. This is to avoid adding duplicate frames to the gif and save a bit of size.

Example

I generated code animation with motioncanvas.io, then, used its editor to render it as a sequence of images. Which was then passed to this CLI to get this gif.

example

About

Create gif animations from image sequences from CLI

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages