Skip to content

Transparent images don't seem to be handled correctly #9473

@long0900

Description

@long0900

I'm using Pillow 12.1.1, Python 3.14.
I was trying to do some image manipulation steps with some VTF textures. I noticed that some of the transparent ones had erroneous results. For example, this is just reading the raw pixel buffer with Image.frombytes() and showing it:

Image Image

Even when I tried to export the texture to TGA format and open it, Pillow was still showing the same result. However, the texture above was displayed fine when I was using RGB mode.

I have attached the .tga image but I have to add a .txt suffix so github can accept to upload it. (Change the extension to .tga if you want to view it)

door_a.tga.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions