tenox7 / wrp

Web Rendering Proxy: Use vintage, historical, legacy browsers on modern web
Apache License 2.0
1.07k stars 52 forks source link

Prioritize high-contrast colours when using GIF and low palette counts #80

Closed tomrow closed 1 year ago

tomrow commented 4 years ago

When using the GIF encoder with a low number of colours, pictures on the page window can make the text look light grey/beige, blurry and somewhat hard to read. I think prioritizing black and white in the palette generation process might help with this a bit.

tenox7 commented 4 years ago

Thats a very good idea. Do you know how to do it, or best could you send a PR with this?

tenox7 commented 3 years ago

@tomrow hey I'm going to be doing a new release, do you know how to change palette prioritization easily?

tomrow commented 3 years ago

Unfortunately I don't know how to program in Go, so I can't give any code suggestions. Perhaps you could force the quantiazer to use a set palette, or perhaps change the image contrast before quantization? It might be best to have this togglable by the end user.

tenox7 commented 1 year ago

The latest build has completely changed how gifs are encoded and palletized. Hopefully for the better. It would be awesome if you could try it and let me know.

tomrow commented 1 year ago

This is great! 2 and 4- bit modes have much higher contrast dark gray text now, rather than the odd oranges and blues of before.

tenox7 commented 1 year ago

Cool thanks!