{"action":"created","issue":{"url":"https://api.github.com/repos/mat/besticon/issues/8","repository_url":"https://api.github.com/repos/mat/besticon","labels_url":"https://api.github.com/repos/mat/besticon/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/mat/besticon/issues/8/comments","events_url":"https://api.github.com/repos/mat/besticon/issues/8/events","html_url":"https://github.com/mat/besticon/issues/8","id":178499064,"number":8,"title":"Unable to decode ICO images?","user":{"login":"vthommeret","id":42359,"avatar_url":"https://avatars.githubusercontent.com/u/42359?v=3","gravatar_id":"","url":"https://api.github.com/users/vthommeret","html_url":"https://github.com/vthommeret","followers_url":"https://api.github.com/users/vthommeret/followers","following_url":"https://api.github.com/users/vthommeret/following{/other_user}","gists_url":"https://api.github.com/users/vthommeret/gists{/gist_id}","starred_url":"https://api.github.com/users/vthommeret/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vthommeret/subscriptions","organizations_url":"https://api.github.com/users/vthommeret/orgs","repos_url":"https://api.github.com/users/vthommeret/repos","events_url":"https://api.github.com/users/vthommeret/events{/privacy}","received_events_url":"https://api.github.com/users/vthommeret/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-22T01:16:29Z","updated_at":"2016-09-27T22:53:44Z","closed_at":"2016-09-27T21:16:23Z","body":"I'm using your library to fetch the icon for a given website and convert it to a PNG for upload. This generally works for JPG, GIF, PNG, etc... images, but not ICO.\r\n\r\nCalling `ico.ParseIco` seems to return reasonable metadata, e.g.:\r\n\r\n`github.ico: MS Windows icon resource - 2 icons, 32x32, 256-colors`\r\n\r\nBut if I try and call `image.Decode`, I always get back \"unknown format\". I've read that there's not a reliable magic string for ICO, so I've tried calling `ico.DecodeImage` directly like this:\r\n\r\nhttps://gist.github.com/vthommeret/d74d15549306571c83ca969d2f56c116\r\n\r\nAnd I get this output:\r\n\r\n```\r\ngithub.ico: len(bytes) 5174\r\nerr: image: unknown format\r\nformat: \r\nFailed to parse github.ico as icon file\r\n<nil>\r\n```\r\n\r\nI've verified that the \"ico\" package is being imported and the format is registered. Am I missing something, or is there a way get an `image.Image` from an ICO file? The `icoparser` is just an example of getting the metadata.\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/mat/besticon/issues/comments/250022701","html_url":"https://github.com/mat/besticon/issues/8#issuecomment-250022701","issue_url":"https://api.github.com/repos/mat/besticon/issues/8","id":250022701,"user":{"login":"vthommeret","id":42359,"avatar_url":"https://avatars.githubusercontent.com/u/42359?v=3","gravatar_id":"","url":"https://api.github.com/users/vthommeret","html_url":"https://github.com/vthommeret","followers_url":"https://api.github.com/users/vthommeret/followers","following_url":"https://api.github.com/users/vthommeret/following{/other_user}","gists_url":"https://api.github.com/users/vthommeret/gists{/gist_id}","starred_url":"https://api.github.com/users/vthommeret/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vthommeret/subscriptions","organizations_url":"https://api.github.com/users/vthommeret/orgs","repos_url":"https://api.github.com/users/vthommeret/repos","events_url":"https://api.github.com/users/vthommeret/events{/privacy}","received_events_url":"https://api.github.com/users/vthommeret/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T22:53:43Z","updated_at":"2016-09-27T22:53:43Z","body":"Ahh, okay. Well that explains that :). I've looked around and also haven't found any golang ICO parsers, which is surprising, but maybe a \"fun\" side project. Thanks!"}}
{"actor":{"display_login":"vthommeret"}}