mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-06 06:30:53 +03:00
This fixes a bug with rounding pixels to the nearest palette color. Specifically, there is a typo with computing the minimum distance from a palette color to a given cache box. This is causing palette colors to be incorrectly excluded from consideration.
17 KiB
128x128px
17 KiB
128x128px
![](/python-pillow/Pillow/raw/commit/e2c267f0484d81f10b636ffeb810676db31448b8/Tests/images/palette_negative.png)