Only sort generated palette colors by PLTE order for indexed PNG images

Non-indexed images can still have a PLTE chunk. We should use
`sortRgb` instead of `sortIndexed` for them, since their pixels' colors
may not all be present in the PLTE chunk and would be unsortable.
This commit is contained in:
Rangi committed 2026-09-13 18:53:31 -04:00
1 parent 49b3f566b1
commit f8a1da71c1
6 files changed
+11 -8

No files matched your search

Binary file not shown.
Binary file not shown.