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.61k stars 2.17k forks source link

Progress bar detail gets lost with quality #1

Closed duarteframos closed 7 years ago

duarteframos commented 8 years ago

Heard you were trying to move away from Codeplex to Github so I'll try to post issue here.

Not sure if this is something solvable without increasing file size or save quality, but see the GIF recorded here My guess is the GIF compression ate away the detail of the progress bar, making it look fragmented or broken. It looked fine in the preview before saving

This release is great so far :)

NickeManarin commented 8 years ago

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. :(

duarteframos commented 8 years ago

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.

NickeManarin commented 8 years ago

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.

duarteframos commented 8 years ago

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

sirtet commented 7 years ago

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

NickeManarin commented 7 years ago

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

NickeManarin commented 7 years ago

I fixed a bug related to this issue, #79

NickeManarin commented 7 years ago

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

duarteframos commented 7 years ago

Yeah, cool! Looking forward to seeing it in action

NickeManarin commented 7 years ago

Previous (1.5 MB): taurm

New (1.11 MB): 256

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

duarteframos commented 7 years ago

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! :)