wrp icon indicating copy to clipboard operation
wrp copied to clipboard

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

Open tomrow opened this issue 5 years ago • 3 comments

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.

tomrow avatar Nov 16 '20 14:11 tomrow

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

tenox7 avatar Nov 17 '20 02:11 tenox7

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

tenox7 avatar Mar 08 '21 13:03 tenox7

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.

tomrow avatar Mar 21 '21 23:03 tomrow

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.

tenox7 avatar Nov 30 '22 07:11 tenox7

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.

tomrow avatar Jan 29 '23 21:01 tomrow

Cool thanks!

tenox7 avatar Jan 29 '23 22:01 tenox7