{"action":"created","issue":{"url":"https://api.github.com/repos/python-pillow/Pillow/issues/2314","repository_url":"https://api.github.com/repos/python-pillow/Pillow","labels_url":"https://api.github.com/repos/python-pillow/Pillow/issues/2314/labels{/name}","comments_url":"https://api.github.com/repos/python-pillow/Pillow/issues/2314/comments","events_url":"https://api.github.com/repos/python-pillow/Pillow/issues/2314/events","html_url":"https://github.com/python-pillow/Pillow/issues/2314","id":197752797,"number":2314,"title":"saving animated gif drops frames","user":{"login":"gboeing","id":4977197,"avatar_url":"https://avatars.githubusercontent.com/u/4977197?v=3","gravatar_id":"","url":"https://api.github.com/users/gboeing","html_url":"https://github.com/gboeing","followers_url":"https://api.github.com/users/gboeing/followers","following_url":"https://api.github.com/users/gboeing/following{/other_user}","gists_url":"https://api.github.com/users/gboeing/gists{/gist_id}","starred_url":"https://api.github.com/users/gboeing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gboeing/subscriptions","organizations_url":"https://api.github.com/users/gboeing/orgs","repos_url":"https://api.github.com/users/gboeing/repos","events_url":"https://api.github.com/users/gboeing/events{/privacy}","received_events_url":"https://api.github.com/users/gboeing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-27T20:20:11Z","updated_at":"2016-12-28T03:45:12Z","closed_at":null,"body":"### What did you do?\r\n\r\nSaved a set of 100 png files as an animated gif then opened the gif\r\n\r\n### What did you expect to happen?\r\n\r\nI expected the gif to have 100 frames, same as the number of png files\r\n\r\n### What actually happened?\r\n\r\nThe gif has only 70 frames\r\n\r\n### What versions of Pillow and Python are you using?\r\n\r\npillow 3.4.2, python 3.5.2\r\n\r\n### Demo\r\n\r\nThere are 100 png files in the folder `save_folder`, named 000.png through 099.png. The first 16 images are identical to one another, and the final 16 images are identical to one another. The other 68 images are all different from each other. In other words, the animation would show the first image for 16 frames, then run through the middle 68 frames before coming to the concluding image which it shows for 16 frames. But when I save the gif, it is missing 15 of the first 16 images and 15 of the final 16 images. Thus there is no \"pause\" at the beginning or end of the animation.\r\n\r\n```python\r\nimages = [Image.open(image) for image in glob.glob('{}/*.png'.format(save_folder))]\r\nlen(images)\r\n```\r\nreturns: 100\r\n\r\n```python\r\ngif = images[0]\r\ngif.save(fp=gif_filepath, format='gif', save_all=True, append_images=images[1:])\r\nImage.open(gif_filepath).n_frames\r\n```\r\nreturns: 70"},"comment":{"url":"https://api.github.com/repos/python-pillow/Pillow/issues/comments/269421058","html_url":"https://github.com/python-pillow/Pillow/issues/2314#issuecomment-269421058","issue_url":"https://api.github.com/repos/python-pillow/Pillow/issues/2314","id":269421058,"user":{"login":"gboeing","id":4977197,"avatar_url":"https://avatars.githubusercontent.com/u/4977197?v=3","gravatar_id":"","url":"https://api.github.com/users/gboeing","html_url":"https://github.com/gboeing","followers_url":"https://api.github.com/users/gboeing/followers","following_url":"https://api.github.com/users/gboeing/following{/other_user}","gists_url":"https://api.github.com/users/gboeing/gists{/gist_id}","starred_url":"https://api.github.com/users/gboeing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gboeing/subscriptions","organizations_url":"https://api.github.com/users/gboeing/orgs","repos_url":"https://api.github.com/users/gboeing/repos","events_url":"https://api.github.com/users/gboeing/events{/privacy}","received_events_url":"https://api.github.com/users/gboeing/received_events","type":"User","site_admin":false},"created_at":"2016-12-28T03:45:12Z","updated_at":"2016-12-28T03:45:12Z","body":"@radarhere thanks yes that serves as a workaround. But any idea why it drops (seemingly depulicates?) frames?"}}
{"actor":{"display_login":"gboeing"}}