News for hackers. Stuff that matters.
Re:Highest-quality GIF encoder based on pngquant by ttoinou on Saturday November 18, 2017 @02:09PM (#15730195)
How does it compare to ffmpeg gif encoder ? Can it be used to compress well gif too ?

How can it support thousands of colors, I thought GIF was limited to a 256 colors palette ?

Re:Highest-quality GIF encoder based on pngquant by pornel on Saturday November 18, 2017 @06:08PM (#15731178)
The quality is much higher than ffmpeg. Encoding is slower.

GIF works like a canvas that can be painted on with 256 colors at a time. This encoder takes care to reuse existing colors on the canvas as efficiently as possible.

Also most encoders generate ugly palettes (e.g. for a start throwing out 3 of 8 bits of precision) and use naive dithering.

This one spends so much effort on getting optimial palettes, that if I were to get VC funding for it, I'd say it does machine learning.

Re:Highest-quality GIF encoder based on pngquant by ttoinou on Saturday November 18, 2017 @06:15PM (#15731224)

  This one spends so much effort on getting optimial palettes, that if I were to get VC funding for it, I'd say it does machine learning. 
Lol

Maybe we could turn this into a product together. Videographers like making GIFs.

Re:Highest-quality GIF encoder based on pngquant by fivesigma on Saturday November 18, 2017 @03:10PM (#15730419)
>How can it support thousands of colors

Temporal dithering. Also called FRC - frame rate control.

You might not notice it, but if you are on a TN monitor right now (almost all non-professional monitors) this technique is being used to emulate 24 bit color. Most TN panels can only display 6 bits per channel.

Re:Highest-quality GIF encoder based on pngquant by ttoinou on Saturday November 18, 2017 @03:36PM (#15730538)
How cool ! That's why the GIF are so heavy it must be something like 100 FPS