{"action":"created","issue":{"url":"https://api.github.com/repos/devongovett/png.js/issues/14","labels_url":"https://api.github.com/repos/devongovett/png.js/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/devongovett/png.js/issues/14/comments","events_url":"https://api.github.com/repos/devongovett/png.js/issues/14/events","html_url":"https://github.com/devongovett/png.js/issues/14","id":18084864,"number":14,"title":"png.decode callback function","user":{"login":"tlhunter","id":551402,"avatar_url":"https://avatars.githubusercontent.com/u/551402?v=3","gravatar_id":"","url":"https://api.github.com/users/tlhunter","html_url":"https://github.com/tlhunter","followers_url":"https://api.github.com/users/tlhunter/followers","following_url":"https://api.github.com/users/tlhunter/following{/other_user}","gists_url":"https://api.github.com/users/tlhunter/gists{/gist_id}","starred_url":"https://api.github.com/users/tlhunter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlhunter/subscriptions","organizations_url":"https://api.github.com/users/tlhunter/orgs","repos_url":"https://api.github.com/users/tlhunter/repos","events_url":"https://api.github.com/users/tlhunter/events{/privacy}","received_events_url":"https://api.github.com/users/tlhunter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2013-08-15T00:15:34Z","updated_at":"2015-10-10T09:26:08Z","closed_at":null,"body":"The callback function for png.decode should have two arguments. The first should be for handling an error, the second should be the image data.\r\n\r\nAs it stands, if an image is loaded for a file which does not exist, the cryptic crash happens:\r\n\r\n    TypeError: Cannot read property '8' of undefined"},"comment":{"url":"https://api.github.com/repos/devongovett/png.js/issues/comments/147068289","html_url":"https://github.com/devongovett/png.js/issues/14#issuecomment-147068289","issue_url":"https://api.github.com/repos/devongovett/png.js/issues/14","id":147068289,"user":{"login":"edi9999","id":2071336,"avatar_url":"https://avatars.githubusercontent.com/u/2071336?v=3","gravatar_id":"","url":"https://api.github.com/users/edi9999","html_url":"https://github.com/edi9999","followers_url":"https://api.github.com/users/edi9999/followers","following_url":"https://api.github.com/users/edi9999/following{/other_user}","gists_url":"https://api.github.com/users/edi9999/gists{/gist_id}","starred_url":"https://api.github.com/users/edi9999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edi9999/subscriptions","organizations_url":"https://api.github.com/users/edi9999/orgs","repos_url":"https://api.github.com/users/edi9999/repos","events_url":"https://api.github.com/users/edi9999/events{/privacy}","received_events_url":"https://api.github.com/users/edi9999/received_events","type":"User","site_admin":false},"created_at":"2015-10-10T09:26:08Z","updated_at":"2015-10-10T09:26:08Z","body":"Yes, totally true, this library is not usable as is because of this, because it throws exceptions from nowhere"}}