{"action":"created","issue":{"url":"https://api.github.com/repos/torchbox/wagtail/issues/1792","labels_url":"https://api.github.com/repos/torchbox/wagtail/issues/1792/labels{/name}","comments_url":"https://api.github.com/repos/torchbox/wagtail/issues/1792/comments","events_url":"https://api.github.com/repos/torchbox/wagtail/issues/1792/events","html_url":"https://github.com/torchbox/wagtail/issues/1792","id":109895567,"number":1792,"title":"exception during rendition generation breaks image chooser and image admin views that attempt to display the image","user":{"login":"thenewguy","id":77731,"avatar_url":"https://avatars.githubusercontent.com/u/77731?v=3","gravatar_id":"","url":"https://api.github.com/users/thenewguy","html_url":"https://github.com/thenewguy","followers_url":"https://api.github.com/users/thenewguy/followers","following_url":"https://api.github.com/users/thenewguy/following{/other_user}","gists_url":"https://api.github.com/users/thenewguy/gists{/gist_id}","starred_url":"https://api.github.com/users/thenewguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thenewguy/subscriptions","organizations_url":"https://api.github.com/users/thenewguy/orgs","repos_url":"https://api.github.com/users/thenewguy/repos","events_url":"https://api.github.com/users/thenewguy/events{/privacy}","received_events_url":"https://api.github.com/users/thenewguy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-05T22:02:45Z","updated_at":"2015-10-16T14:02:13Z","closed_at":null,"body":"Wagtail will let you upload the following image:\r\n![shut-up-and-take-my-money-animated](https://cloud.githubusercontent.com/assets/77731/10294719/0c7cfae0-6b8a-11e5-97fe-5ef772b24e38.gif)\r\n\r\nHowever it cannot be used to create a rendition.  `image.get_rendition(...)` does not catch the exception raised by PIL GifImagePlugin \"int() argument must be a string or a number, not 'tuple'\".\r\n\r\nThis breaks the image chooser and anything that uses `get_rendition()`.\r\n\r\nThere are some older issues related to this that are closed and an open one on willow at https://github.com/torchbox/Willow/issues/16\r\n\r\nWagtail needs to handle a failed rendition more gracefully because currently the interface breaks and becomes unusable with 500 errors.  Possibly return a rendition that points to a static error image available from the site's static files indicating a problem.  I am going to investigate this approach with a custom image model and see how it goes.\r\n"},"comment":{"url":"https://api.github.com/repos/torchbox/wagtail/issues/comments/148724914","html_url":"https://github.com/torchbox/wagtail/issues/1792#issuecomment-148724914","issue_url":"https://api.github.com/repos/torchbox/wagtail/issues/1792","id":148724914,"user":{"login":"gasman","id":85097,"avatar_url":"https://avatars.githubusercontent.com/u/85097?v=3","gravatar_id":"","url":"https://api.github.com/users/gasman","html_url":"https://github.com/gasman","followers_url":"https://api.github.com/users/gasman/followers","following_url":"https://api.github.com/users/gasman/following{/other_user}","gists_url":"https://api.github.com/users/gasman/gists{/gist_id}","starred_url":"https://api.github.com/users/gasman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gasman/subscriptions","organizations_url":"https://api.github.com/users/gasman/orgs","repos_url":"https://api.github.com/users/gasman/repos","events_url":"https://api.github.com/users/gasman/events{/privacy}","received_events_url":"https://api.github.com/users/gasman/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T14:02:13Z","updated_at":"2015-10-16T14:02:13Z","body":"@benje - https://groups.google.com/d/msg/wagtail/CQ-S338XDvs/sYm11mjJCQAJ might help you out."}}