{"action":"created","issue":{"url":"https://api.github.com/repos/lovell/sharp/issues/640","repository_url":"https://api.github.com/repos/lovell/sharp","labels_url":"https://api.github.com/repos/lovell/sharp/issues/640/labels{/name}","comments_url":"https://api.github.com/repos/lovell/sharp/issues/640/comments","events_url":"https://api.github.com/repos/lovell/sharp/issues/640/events","html_url":"https://github.com/lovell/sharp/issues/640","id":192718000,"number":640,"title":"Extracting prominent colours","user":{"login":"refo","id":1114116,"avatar_url":"https://avatars.githubusercontent.com/u/1114116?v=3","gravatar_id":"","url":"https://api.github.com/users/refo","html_url":"https://github.com/refo","followers_url":"https://api.github.com/users/refo/followers","following_url":"https://api.github.com/users/refo/following{/other_user}","gists_url":"https://api.github.com/users/refo/gists{/gist_id}","starred_url":"https://api.github.com/users/refo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/refo/subscriptions","organizations_url":"https://api.github.com/users/refo/orgs","repos_url":"https://api.github.com/users/refo/repos","events_url":"https://api.github.com/users/refo/events{/privacy}","received_events_url":"https://api.github.com/users/refo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-01T00:06:23Z","updated_at":"2016-12-01T10:32:46Z","closed_at":null,"body":"Is it possible to extract prominent colours or single dominant colour using sharp ?"},"comment":{"url":"https://api.github.com/repos/lovell/sharp/issues/comments/264136970","html_url":"https://github.com/lovell/sharp/issues/640#issuecomment-264136970","issue_url":"https://api.github.com/repos/lovell/sharp/issues/640","id":264136970,"user":{"login":"lovell","id":210965,"avatar_url":"https://avatars.githubusercontent.com/u/210965?v=3","gravatar_id":"","url":"https://api.github.com/users/lovell","html_url":"https://github.com/lovell","followers_url":"https://api.github.com/users/lovell/followers","following_url":"https://api.github.com/users/lovell/following{/other_user}","gists_url":"https://api.github.com/users/lovell/gists{/gist_id}","starred_url":"https://api.github.com/users/lovell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lovell/subscriptions","organizations_url":"https://api.github.com/users/lovell/orgs","repos_url":"https://api.github.com/users/lovell/repos","events_url":"https://api.github.com/users/lovell/events{/privacy}","received_events_url":"https://api.github.com/users/lovell/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T10:32:46Z","updated_at":"2016-12-01T10:32:46Z","body":"Hello Refik, thanks for raising this topic here. I've been toying with the idea of adding a \"stats\" feature to expose various calculations based on pixel values and this feature would fit in that category.\r\n\r\nThis could include any derived data where all the pixel values have to be decompressed so will be much slower than inspecting the uncompressed header data.\r\n\r\nWe can probably use the histogram binning features of libvips for dominant colours, although I think we'd need to perform quantisation of these values to make them useful.\r\n\r\nIn the meantime, for those who like to live dangerously, there's the unsupported https://github.com/lovell/attention"}}
{"actor":{"display_login":"lovell"}}