You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ImageOps.expand removes the alpha channel of palettes #9136
In this example I created an image of 16 × 16 pixels and with the second color of the palette (index 1), then I call ImageOps.expand to add a border with the first color of the palette (index 0).
I expected the second image to have a transparent border, but it is opaque:
(img)
(framed_img)
We can easily verify that both images have palettes and the palettes have different modes in a Python REPL:
Activity
radarhere commentedon Aug 6, 2025
I've created #9138 to fix this.