You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected that all the frames would look normal without them merging
What actually happened?
The last 2 images merged as in the following pic when the expected result would be
The second last frame was kept normal but the last frame included the second last frame merged to it
I was able to get the desired result by using the following modification of my original loop
GIFs have a value called a 'disposal method'. For the last frame in this image, it is set to 'Do not dispose. The graphic is to be left in place.'
So from what I can see, Pillow is behaving correctly. Clearly standard image viewers have other ideas about what to do in this situation though, and I don't know what logic they are using.
What did you do?
I iterated through gif frames and added copies of the frames converted to rgba to a list of the following 4 frame gif
This was the code I used and what produced the invalid result
What did you expect to happen?
Expected that all the frames would look normal without them merging
What actually happened?
The last 2 images merged as in the following pic when the expected result would be
The second last frame was kept normal but the last frame included the second last frame merged to it
I was able to get the desired result by using the following modification of my original loop
What versions of Pillow and Python are you using?
Python 3.6.4
Pillow 5.1.0
The text was updated successfully, but these errors were encountered: