mirror of
https://gitlab.com/AutumnMeowMeow/jexer
synced 2024-09-19 11:50:19 -06:00
#99 median cut is broken
This commit is contained in:
parent
7c719f7524
commit
5831948c1c
1 changed files with 4 additions and 1 deletions
|
@ -634,7 +634,10 @@ public class HQSixelEncoder implements SixelEncoder {
|
|||
*
|
||||
* - Otherwise use octree.
|
||||
*/
|
||||
if (numColors >= colorMap.size()) {
|
||||
if ((numColors <= 256) && (colorMap.size() <= numColors)) {
|
||||
// TODO: The numColors <= 256 above should not be there. But
|
||||
// apparently my median cut is buggy and only works with 256+
|
||||
// colors. Honestly, is my median cut even doing anything?!
|
||||
quantizationType = 0;
|
||||
directMap();
|
||||
} else if (true || (colorMap.size() <= numColors * 10)) {
|
||||
|
|
Loading…
Reference in a new issue