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
I have palettized images that use "0xFF 0x00 0xFF" to mark transparency. After converting this into an alpha channel I want to reorder colours so that transparency is at the start of the palette.
I am using "image.remap_palette" to reorder colours.
What did you expect to happen?
I expect the transparency information in a palette to be preserved when reordering colours.
What actually happened?
Transparency information in a palette is lost when reordering colours
This produces two images: test_A is the input, test_B is the output
Both images should look identical when opened in a program like GIMP. The colours (red and green) are correctly swapped, though test_B loses the transparency on red.
The text was updated successfully, but these errors were encountered:
What did you do?
I have palettized images that use "0xFF 0x00 0xFF" to mark transparency. After converting this into an alpha channel I want to reorder colours so that transparency is at the start of the palette.
I am using "image.remap_palette" to reorder colours.
What did you expect to happen?
I expect the transparency information in a palette to be preserved when reordering colours.
What actually happened?
Transparency information in a palette is lost when reordering colours
What are your OS, Python and Pillow versions?
This produces two images: test_A is the input, test_B is the output
Both images should look identical when opened in a program like GIMP. The colours (red and green) are correctly swapped, though test_B loses the transparency on red.
The text was updated successfully, but these errors were encountered: