antimatter15 / jsgif

Save a HTML5 Canvas to GIF and Animations. A port of as3gif GIFPlayer to JS
http://antimatter15.com/
MIT License
1.07k stars 138 forks source link

Set sampling factor to 1 by default #34

Open mpohl100 opened 6 years ago

mpohl100 commented 6 years ago

This way all pixels will be considered in the Learning Phase of NeuQuant. See: https://scientificgems.wordpress.com/stuff/neuquant-fast-high-quality-image-quantization/ I encountered the problem when converting black text on white background. Sometimes the black color was not gathered because of the sampling phase of NeuQuant. This might be worth a try for other color problems too.