{"action":"created","issue":{"url":"https://api.github.com/repos/kohler/gifsicle/issues/35","labels_url":"https://api.github.com/repos/kohler/gifsicle/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/kohler/gifsicle/issues/35/comments","events_url":"https://api.github.com/repos/kohler/gifsicle/issues/35/events","html_url":"https://github.com/kohler/gifsicle/issues/35","id":64101057,"number":35,"title":"Corrupted gif crashes gifsicle","user":{"login":"masom","id":438456,"avatar_url":"https://avatars.githubusercontent.com/u/438456?v=3","gravatar_id":"","url":"https://api.github.com/users/masom","html_url":"https://github.com/masom","followers_url":"https://api.github.com/users/masom/followers","following_url":"https://api.github.com/users/masom/following{/other_user}","gists_url":"https://api.github.com/users/masom/gists{/gist_id}","starred_url":"https://api.github.com/users/masom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masom/subscriptions","organizations_url":"https://api.github.com/users/masom/orgs","repos_url":"https://api.github.com/users/masom/repos","events_url":"https://api.github.com/users/masom/events{/privacy}","received_events_url":"https://api.github.com/users/masom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-24T21:14:33Z","updated_at":"2015-03-25T13:27:37Z","closed_at":null,"body":"Gifsicle crashes when a gif contains an invalid/corrupted frame.\r\n\r\nA command line switch to tell gifsicle to drop corrupted frames would be awesome.\r\n\r\n```bash\r\n# gifsicle fail_gifsicle.gif\r\ngifsicle:fail_gifsicle.gif:#102: read error: missing 52926 pixels of image data\r\ngifsicle:fail_gifsicle.gif:#102: fatal error: too many missing pixels, giving up\r\n```\r\n\r\n\r\nImageMagick has the same problem:\r\n```bash\r\nconvert fail_gifsicle.gif fail.gif\r\nconvert: corrupt image `fail_gifsicle.gif' @ error/gif.c/ReadGIFImage/1355.\r\nconvert: no images defined `fail.gif' @ error/convert.c/ConvertImageCommand/3210.\r\n```\r\n\r\nNot including the specific frame that is corrupted works:\r\n```convert 'fail_gifsicle.gif[0-101]' -coalesce test.gif```\r\n\r\nGif:\r\n![fail_gifsicle](https://cloud.githubusercontent.com/assets/438456/6813088/392290b2-d249-11e4-9ad0-391ce9556066.gif)\r\n\r\n```\r\nLCDF Gifsicle 1.87\r\nCopyright (C) 1997-2014 Eddie Kohler\r\nThis is free software; see the source for copying conditions.\r\nThere is NO warranty, not even for merchantability or fitness for a\r\nparticular purpose.\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/kohler/gifsicle/issues/comments/86023084","html_url":"https://github.com/kohler/gifsicle/issues/35#issuecomment-86023084","issue_url":"https://api.github.com/repos/kohler/gifsicle/issues/35","id":86023084,"user":{"login":"masom","id":438456,"avatar_url":"https://avatars.githubusercontent.com/u/438456?v=3","gravatar_id":"","url":"https://api.github.com/users/masom","html_url":"https://github.com/masom","followers_url":"https://api.github.com/users/masom/followers","following_url":"https://api.github.com/users/masom/following{/other_user}","gists_url":"https://api.github.com/users/masom/gists{/gist_id}","starred_url":"https://api.github.com/users/masom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masom/subscriptions","organizations_url":"https://api.github.com/users/masom/orgs","repos_url":"https://api.github.com/users/masom/repos","events_url":"https://api.github.com/users/masom/events{/privacy}","received_events_url":"https://api.github.com/users/masom/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T13:27:37Z","updated_at":"2015-03-25T13:27:37Z","body":"Another gif with a bad last frame:\r\n![original-9d4c26e6-06bf-46bc-a1ed-e956acaa66f0](https://cloud.githubusercontent.com/assets/438456/6825462/2b05c8e0-d2d1-11e4-8f7d-df2a7dc60c42.gif)\r\n"}}