Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AnimGif #5781

Closed
doublex opened this issue Oct 19, 2021 · 2 comments · Fixed by #5857
Closed

AnimGif #5781

doublex opened this issue Oct 19, 2021 · 2 comments · Fixed by #5857
Labels

Comments

@doublex
Copy link

doublex commented Oct 19, 2021

Some AnimGifs are not transparent:

import PIL.Image
with PIL.Image.open('/tmp/AnimGif.gif', 'r') as image:
    for index, frame in enumerate(PIL.ImageSequence.Iterator(image)):
        #frame = frame.convert('RGBA')
        frame.save('/tmp/m/'+str(index)+'.png', 'PNG')

Image:
AnimGif

For example frame 6 and 19:
6
19

@radarhere radarhere added the GIF label Oct 19, 2021
@radarhere
Copy link
Member

radarhere commented Oct 19, 2021

Just a technical note - I don't see any "transparency" here, background color, or even disposal. The palette index of the (0, 0) pixel stays the same for each frame, so I would conclude this is our long-standing bug where multiple frames with different palettes are not processed correctly.

@radarhere
Copy link
Member

I've created PR #5857 to resolve this.

Frame 6 and 19
6
19

@radarhere radarhere changed the title AnimGif transparency AnimGif Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants