mirror of
https://github.com/NickeManarin/ScreenToGif.git
synced 2026-04-25 23:25:52 +03:00
[GH-ISSUE #689] Colour reduction algorithm comparison #556
Labels
No labels
copy cats
duplicated
future feature
pull-request
⬜ Accepted
⬜ Completed
⬜ Help Wanted 💪
⬜ In Progress
⬜ Missing Details
⬜ Pending
⬜ Waiting For Answer ⏳
🆕 feature preview
🔷 Bug 🐛
🔷 Out Of Scope
🔷 Out Of Scope
🔷 Question
🔷Enhancement
🔷Enhancement
🔷Invalid / External
🔷Knowledge Base
🔷Won't Fix
🕑 High
🕑 High
🕑 High
🕕 Medium
🕙 Low
🕛 Critical
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ScreenToGif#556
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @KybernetikGames on GitHub (Jul 8, 2020).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/689
I just updated to v2.26.1 and tried out the new colour reduction algorithms and figured I'd give some feedback.
Neural Network says it's good for lots of colours and works reasonably for the main body of the video, but did really badly on the progress bar at the bottom (5 pixels):
Octree gave me a smallest file size with a perfect progress bar and the expected colour banding. This is definitely the best one for my purposes.
Saying Median Cut is "less good" is a bit of an understatement. Larger file size, screwed up colours, banding in the progress bar, and horrendous ghosting all in one:
Greyscale looks good, but has the largest file size.
Most Used Colours is pretty bad too, with poor colouring (as expected) and a different kind of artifacts on the progress bar. But at least it gave the second smallest file size.
@byzod commented on GitHub (Jul 10, 2020):
Check the
use global color tablewould helpThis should be on by default I'd say, fix many color problem
But even with this on, the light green progress bar is dark green with Neural Network, strange...
This is what I got when capture you second gif (light green bar one with Octree)
Off topic. Have my thanks @NickeManarin, the new encoder is epic fast and have better performance than before! It's the best overall choice now (before gifski fix the flickring pixel issue :D)
@NickeManarin commented on GitHub (Jul 10, 2020):
I still need to improve the global color palette building mechanism. Right now it only takes the first frame to build the palette.
If a new color appears on any other frame, the color will look off-tone/strange.
Yes, because the light green color represents a tiny portion of the first frame. Neural takes that into account when deciding which colors to use.
You're welcome! :D
I'll take a look if a new version was released or not.
@vatterspun commented on GitHub (Jul 12, 2020):
The grayscale issue is something I've seen with other compression tools (e.g. Riot image compression). I don't have any understanding why what seems like fewer colors would take up MORE room, but I never dug into it very far. It does seem like there are fewer things to store without specific colors.
@NickeManarin commented on GitHub (Jul 12, 2020):
@vatterspun The grayscale algorithm creates a global palette (it forces that, ignoring the checkbox) using all color slots available (selected via the "max colors" input).
@vatterspun commented on GitHub (Jul 13, 2020):
Ah, thanks for that
@byzod commented on GitHub (Jul 19, 2020):
Tested it more that I found this bug only occurs on new version (2.26)
This is the original gif

This is 1.0 encoding (neuquant) of

ver 2.23, quality 1This is 2.0 encoding (octree) of

ver 2.23Both of them looks good enough
But things gone wild with new version of StG
This is Neural Network with

use global color tableofver 2.26, sample 1This is Neural Network without

use global color tableofver 2.26, sample 1With global color table there's no color blinking which is good, but the overall color looks weird, especially bright colors (green bar at the bottom becomes dark, it can even be totally black if there are many colors in the image)
Without color table, the color blinks but at least it looks better overall, but strange things may happens on things like progress bar...