[GH-ISSUE #350] Additional Gif Compression Settings #291

Open
opened 2026-02-26 09:30:52 +03:00 by kerem · 3 comments
Owner

Originally created by @JohannesMP on GitHub (Jul 2, 2018).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/350

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.

Originally created by @JohannesMP on GitHub (Jul 2, 2018). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/350 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](https://user-images.githubusercontent.com/662874/42177759-cc218b00-7de2-11e8-828a-388ae606a3f4.png) 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.
Author
Owner

@NickeManarin commented on GitHub (Jul 3, 2018):

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

<!-- gh-comment-id:401991801 --> @NickeManarin commented on GitHub (Jul 3, 2018): Nice, a threshold for the algorithm that detects color changes would be less hard to code.
Author
Owner

@vatterspun commented on GitHub (Jul 4, 2018):

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

<!-- gh-comment-id:402506837 --> @vatterspun commented on GitHub (Jul 4, 2018): Related: #299 and #317. And this same process would likely also save space when exporting to the APNG format (#245).
Author
Owner

@NickeManarin commented on GitHub (Jun 29, 2020):

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

EbkC_NIWsAEZ4Jn

<!-- gh-comment-id:651239107 --> @NickeManarin commented on GitHub (Jun 29, 2020): I rewrote the color quantizers. The built-in quantizers now allows to select a maximum color count. ![EbkC_NIWsAEZ4Jn](https://user-images.githubusercontent.com/14798947/86033275-13578500-ba0f-11ea-91ca-18b325405cde.png)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ScreenToGif#291
No description provided.