gd_topal.c:1563: select_colors (im, cquantize, 256); // Seems to be fixed in latest release (2.0.28)
Fixed in gd2-2.0.28-alt1