Skip to content

donatj/tcgif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tcgif

Go Reference Go Report Card

Trueclor Gif Generator

Why?

Just for kicks. I saw a similar demo many years back and was curious how hard it would be to reproduce.

How?

Gifs have a limited pallet of 255 colors, but that limit is per frame. Gifs also use transparency as a naive compression method such that the previous frame can show through. By utilizing this, we can in fact get 16 million colors in a single Gif!

todo

  • Less naive backfill. Track if the current backfilled color would be closer than a new one.

Samples

Description Image
No Backfill, Unsorted
tcgif -backfill=false -sort=false orig.jpg
Lenna, No Backfill, No Sort
No Backfill, Sorted By Popularity
tcgif -backfill=false orig.jpg
Lenna, No Backfill
Backfilled
tcgif orig.jpg
Lenna, Backfilled
Original Original

About

True Color Gif Generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages