On Mon Apr 7 14:45:00 2025 +0000, Matteo Bruni wrote:
What happens if the color key matches two colors in the palette? Or for the A8P8 to RGB case, what happens if the alpha part doesn't match? Fundamentally though, I'm not convinced (yet) that the matching happens in the source color space.
I hadn't considered that initially, and you were correct that if there were multiple palette entries that had the same color converting to the source color space wouldn't work. I've added tests for this now, and changed the way things are done so that this works.