{"action":"created","issue":{"url":"https://api.github.com/repos/codingjoe/django-stdimage/issues/184","repository_url":"https://api.github.com/repos/codingjoe/django-stdimage","labels_url":"https://api.github.com/repos/codingjoe/django-stdimage/issues/184/labels{/name}","comments_url":"https://api.github.com/repos/codingjoe/django-stdimage/issues/184/comments","events_url":"https://api.github.com/repos/codingjoe/django-stdimage/issues/184/events","html_url":"https://github.com/codingjoe/django-stdimage/pull/184","id":300988409,"number":184,"title":"Attempt to circumvent \"OSError: image file is truncated\" issue.","user":{"login":"webtweakers","id":1565277,"avatar_url":"https://avatars0.githubusercontent.com/u/1565277?v=4","gravatar_id":"","url":"https://api.github.com/users/webtweakers","html_url":"https://github.com/webtweakers","followers_url":"https://api.github.com/users/webtweakers/followers","following_url":"https://api.github.com/users/webtweakers/following{/other_user}","gists_url":"https://api.github.com/users/webtweakers/gists{/gist_id}","starred_url":"https://api.github.com/users/webtweakers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webtweakers/subscriptions","organizations_url":"https://api.github.com/users/webtweakers/orgs","repos_url":"https://api.github.com/users/webtweakers/repos","events_url":"https://api.github.com/users/webtweakers/events{/privacy}","received_events_url":"https://api.github.com/users/webtweakers/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"webtweakers","id":1565277,"avatar_url":"https://avatars0.githubusercontent.com/u/1565277?v=4","gravatar_id":"","url":"https://api.github.com/users/webtweakers","html_url":"https://github.com/webtweakers","followers_url":"https://api.github.com/users/webtweakers/followers","following_url":"https://api.github.com/users/webtweakers/following{/other_user}","gists_url":"https://api.github.com/users/webtweakers/gists{/gist_id}","starred_url":"https://api.github.com/users/webtweakers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webtweakers/subscriptions","organizations_url":"https://api.github.com/users/webtweakers/orgs","repos_url":"https://api.github.com/users/webtweakers/repos","events_url":"https://api.github.com/users/webtweakers/events{/privacy}","received_events_url":"https://api.github.com/users/webtweakers/received_events","type":"User","site_admin":false},"assignees":[{"login":"webtweakers","id":1565277,"avatar_url":"https://avatars0.githubusercontent.com/u/1565277?v=4","gravatar_id":"","url":"https://api.github.com/users/webtweakers","html_url":"https://github.com/webtweakers","followers_url":"https://api.github.com/users/webtweakers/followers","following_url":"https://api.github.com/users/webtweakers/following{/other_user}","gists_url":"https://api.github.com/users/webtweakers/gists{/gist_id}","starred_url":"https://api.github.com/users/webtweakers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webtweakers/subscriptions","organizations_url":"https://api.github.com/users/webtweakers/orgs","repos_url":"https://api.github.com/users/webtweakers/repos","events_url":"https://api.github.com/users/webtweakers/events{/privacy}","received_events_url":"https://api.github.com/users/webtweakers/received_events","type":"User","site_admin":false},{"login":"codingjoe","id":1772890,"avatar_url":"https://avatars1.githubusercontent.com/u/1772890?v=4","gravatar_id":"","url":"https://api.github.com/users/codingjoe","html_url":"https://github.com/codingjoe","followers_url":"https://api.github.com/users/codingjoe/followers","following_url":"https://api.github.com/users/codingjoe/following{/other_user}","gists_url":"https://api.github.com/users/codingjoe/gists{/gist_id}","starred_url":"https://api.github.com/users/codingjoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codingjoe/subscriptions","organizations_url":"https://api.github.com/users/codingjoe/orgs","repos_url":"https://api.github.com/users/codingjoe/repos","events_url":"https://api.github.com/users/codingjoe/events{/privacy}","received_events_url":"https://api.github.com/users/codingjoe/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-02-28T11:26:58Z","updated_at":"2018-03-01T16:56:29Z","closed_at":"2018-03-01T16:55:26Z","author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/codingjoe/django-stdimage/pulls/184","html_url":"https://github.com/codingjoe/django-stdimage/pull/184","diff_url":"https://github.com/codingjoe/django-stdimage/pull/184.diff","patch_url":"https://github.com/codingjoe/django-stdimage/pull/184.patch"},"body":"as detailed here: https://github.com/python-pillow/Pillow/issues/1510\r\n\r\nWhen running the management command 'rendervariations' on a set of about 100.000 images, I bumped into the error message: `image file is truncated (6 bytes not processed)`, which came form PIL that bumped into a faulty image (See PIL/ImageFile.py, line 232). The complete rendering stopped.\r\n\r\nThe exception isn't caught anywhere. I think ideally one wants a setting to control what to do on such a failure: skip, continue, halt...\r\n\r\nFor now I followed the suggestion as outlined in referenced Pillow issue, which solved the problem for me. See the changes in stdimage/models.py.\r\n\r\nBtw: I tried following the contribution guide, but when i do a `dcc django-stdimage`, I get this error message:\r\n\r\n```\r\ndcc.DjangoCCError: The package \"django-stdimage\" does not support Django-CC.\r\n```\r\n\r\nSo I offer this PR as a suggestion to fix the issue, but I suppose there are better ways."},"comment":{"url":"https://api.github.com/repos/codingjoe/django-stdimage/issues/comments/369657546","html_url":"https://github.com/codingjoe/django-stdimage/pull/184#issuecomment-369657546","issue_url":"https://api.github.com/repos/codingjoe/django-stdimage/issues/184","id":369657546,"user":{"login":"codingjoe","id":1772890,"avatar_url":"https://avatars1.githubusercontent.com/u/1772890?v=4","gravatar_id":"","url":"https://api.github.com/users/codingjoe","html_url":"https://github.com/codingjoe","followers_url":"https://api.github.com/users/codingjoe/followers","following_url":"https://api.github.com/users/codingjoe/following{/other_user}","gists_url":"https://api.github.com/users/codingjoe/gists{/gist_id}","starred_url":"https://api.github.com/users/codingjoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codingjoe/subscriptions","organizations_url":"https://api.github.com/users/codingjoe/orgs","repos_url":"https://api.github.com/users/codingjoe/repos","events_url":"https://api.github.com/users/codingjoe/events{/privacy}","received_events_url":"https://api.github.com/users/codingjoe/received_events","type":"User","site_admin":false},"created_at":"2018-03-01T16:56:29Z","updated_at":"2018-03-01T16:56:29Z","author_association":"OWNER","body":"Released in [3.0.1](https://github.com/codingjoe/django-stdimage/releases/tag/3.0.1)\r\nThx @webtweakers !"}}
{"actor":{"display_login":"codingjoe"}}