Skip to content

cur file saved as a png has black pixels where it needs to be transparent #9637

@mmemoo

Description

@mmemoo

its a really easy-to-reproduce issue, just run this code with the file i attached in Pillow 12.1.0 :

from PIL import Image

im = Image.open("aero_unavail.cur")
im.save("aero_unavail.png")

(the file is provided as a txt file since github doesn't allow cur files to be uploaded, just change the extension.)

aero_unavail.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions