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
When I use Image.show() on an image with mode LA, transparency is not shown. When I use .save(...), the resulting image has transparency included correctly. With mode RGBA, transparency is correctly displayed on .show() (and correctly written on .save(...)).
What did you do?
I used .show() on an image with mode LA.
What did you expect to happen?
I expected it to display an image with transparency:
The 32-bit per pixel (32bpp) format supports 4,294,967,296 distinct colors and stores 1 pixel per 4-byte DWORD. Each DWORD can define the alpha, red, green and blue samples of the pixel.
I could be wrong, but I think that BMP can't handle greyscale with alpha.
So I've created PR #3869 to allow ImageShow to use the LA mode, except for Windows.
When I use
Image.show()
on an image with modeLA
, transparency is not shown. When I use.save(...)
, the resulting image has transparency included correctly. With modeRGBA
, transparency is correctly displayed on.show()
(and correctly written on.save(...)
).What did you do?
I used
.show()
on an image with modeLA
.What did you expect to happen?
I expected it to display an image with transparency:
What actually happened?
It showed an image without transparency:
What are your OS, Python and Pillow versions?
The text was updated successfully, but these errors were encountered: