A non-alpha palette may have an even multiple of four colors, causing it to be divisible by four even though it doesn't contain alpha values. So the code in encoder.js (lines 179 to 192) will erroneously move some of the palette bytes into the alpha palette, breaking the palette.
A non-alpha palette may have an even multiple of four colors, causing it to be divisible by four even though it doesn't contain alpha values. So the code in encoder.js (lines 179 to 192) will erroneously move some of the palette bytes into the alpha palette, breaking the palette.