Skip to content

GIF transparent pixels of non-initial frame read opaque #5480

@zhuyifei1999

Description

@zhuyifei1999

What did you do?

Extraction of pixel values from 585738106976731142,gif, frame 1, pixel (0, 0):

from PIL import Image

img = Image.open('585738106976731142.gif')
img.seek(1)
rgba = img.convert('RGBA')
print(rgba.getpixel((0, 0)))

What did you expect to happen?

Expected: (151, 151, 151, 0) (Fully transparent)

What actually happened?

Got: (34, 24, 21, 255) (Opaque dark orange)

What are your OS, Python and Pillow versions?

  • OS: Gentoo Linux
  • Python: 3.8.10
  • Pillow: 8.2.0

Git bisect shows first bad commit as 18854dc, part of PR #5333 (CC @radarhere)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions