-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Incorrect GIF palette in frames after the first #5819
Copy link
Copy link
Closed
Labels
Description
Code and Image
from PIL import Image
image = Image.open("ralsei.gif")
image.seek(4)
image.save("ralsei.png")What did I expect to happen?
The script saves the fifth frame of the gif into a .png file.
What actually happened?
ralsei.png: 
The script saves the fifth frame of the gif into a .png file, but without the yellow stars, in their place are completely transparent pixels. Possibly due to the fact that there is no yellow in the palette of the first frame.
OS, Python and Pillow versions:
- OS: Windows 10 Pro 20H2
- Python: 3.10.0
- Pillow: 8.4.0
Also reproducible on:
- OS: Manjaro Linux (arm)
- Python: 3.9.7
- Pillow: 8.4.0
Reactions are currently unavailable
