Giter VIP home page Giter VIP logo

Comments (11)

NickeManarin avatar NickeManarin commented on May 16, 2024

Your guess is right. The neural quantizer (NeuQuant) algorithm transforms 24 bits images to 8 bits images (256 colors).

Since the bar increase it self piece by piece, the algorithm only takes into account a few number of pixels per frame. The other pixels that are changing take more "space" than the piece of the bar.

So the bar color information is lost when there's too much info per frame. :(

from screentogif.

duarteframos avatar duarteframos commented on May 16, 2024

Ah that's too bad, but I suspected as much.
I use ScreentoGif mainly to help users out over Blender Stack exchange and upload sizes are limited to 2Mb there, so file sizes already very tight without increasing image quality.

Anyway thanks for the reply, keep up the great work.

from screentogif.

NickeManarin avatar NickeManarin commented on May 16, 2024

I created from scratch a new encoder that avoids this bug. This new encoder lacks the current NeuQuant (color quantitizer) but I plan to improve with other color quantization algorithms.

from screentogif.

duarteframos avatar duarteframos commented on May 16, 2024

Wow you are tireless. That is great news, curious to see how it preforms.
I'll be keeping an eye on this 👍

from screentogif.

sirtet avatar sirtet commented on May 16, 2024

Could a solution be to first add a background stripe, and let the progressbar run on that?

from screentogif.

NickeManarin avatar NickeManarin commented on May 16, 2024

No, the problem starts with gif encoder (the color quantization).

from screentogif.

NickeManarin avatar NickeManarin commented on May 16, 2024

I fixed a bug related to this issue, #79

from screentogif.

NickeManarin avatar NickeManarin commented on May 16, 2024

There's a new color quantization algorithm almost ready for the encoder 2.0.

from screentogif.

duarteframos avatar duarteframos commented on May 16, 2024

Yeah, cool! Looking forward to seeing it in action

from screentogif.

NickeManarin avatar NickeManarin commented on May 16, 2024

Previous (1.5 MB):
taurm

New (1.11 MB):
256

I noticed the color banding, but at least the progress bar is alright.

from screentogif.

duarteframos avatar duarteframos commented on May 16, 2024

Wow this is absolutely fantastic, both improved image quality and reduced file size!
Banding is barely noticeable at all, and quite an acceptable compromise for the quality gains.

This will make long GIFs a lot easier to watch. Thanks a lot! :)

from screentogif.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.