NickeManarin / ScreenToGif

🎬 ScreenToGif allows you to record a selected area of your screen, edit and save it as a gif or video.
http://www.screentogif.com
Microsoft Public License
23.53k stars 2.17k forks source link

Additional Gif Compression Settings #350

Open JohannesMP opened 6 years ago

JohannesMP commented 6 years ago

It would be useful if we could more aggressively Posterize the gif to be saved, to ensure that subtly different and changing colors are compressed into one non-changing mass of pixels.

Photoshop's 'save for web' legacy UI for gifs allowed the user to select the number of desired colors, as well as the ability to fine tune which colors the algorithm would actually try to use, settings for dithering, lossyness, etc.

image

Similarly, if the clip to be captured contains a subtle amount of noise but with colors that are not changing much otherwise, it would be useful to more aggressively consider those pixels as 'unchanging', something which the current 'Detect unchanged pixels' algorithm can be pretty bad at.

NickeManarin commented 6 years ago

Nice, a threshold for the algorithm that detects color changes would be less hard to code.

vatterspun commented 6 years ago

Related: #299 and #317. And this same process would likely also save space when exporting to the APNG format (#245).

NickeManarin commented 4 years ago

I rewrote the color quantizers. The built-in quantizers now allows to select a maximum color count.

EbkC_NIWsAEZ4Jn