Skip to content

davidhampgonsalves/Gif-Twist

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

Gif Twist

Animate a series of images around a central point.

Explination

Each output frame that Gif Twist creates is a combination of all input frames offset by time.

Warnings

This project was just an experiment and acts as a working example of the technique. It is not performant because it uses masking to merge each image slice into the out rather then iterating over the output pixels and simply selecting its value from one of the source images.

Usage (from a video source)

Install go-lang, avconv & gifsicle.

avconv -i time.mp4 -r 1.5 -an -y 'inputs/%04d.png'
go run giftwist.go
gifsicle --delay=4 --optimize --loop out/*.gif > ../out.gif

Credit

I saw this technique manually generated in this reddit post by Spiritgreen.

About

Visualize time as frames radiating around a central point

Topics

Resources

Stars

Watchers

Forks

Languages