{"action":"created","issue":{"url":"https://api.github.com/repos/nothings/stb/issues/551","repository_url":"https://api.github.com/repos/nothings/stb","labels_url":"https://api.github.com/repos/nothings/stb/issues/551/labels{/name}","comments_url":"https://api.github.com/repos/nothings/stb/issues/551/comments","events_url":"https://api.github.com/repos/nothings/stb/issues/551/events","html_url":"https://github.com/nothings/stb/issues/551","id":294148152,"number":551,"title":"Loading Image with desired channels error","user":{"login":"Tom-III","id":2104588,"avatar_url":"https://avatars1.githubusercontent.com/u/2104588?v=4","gravatar_id":"","url":"https://api.github.com/users/Tom-III","html_url":"https://github.com/Tom-III","followers_url":"https://api.github.com/users/Tom-III/followers","following_url":"https://api.github.com/users/Tom-III/following{/other_user}","gists_url":"https://api.github.com/users/Tom-III/gists{/gist_id}","starred_url":"https://api.github.com/users/Tom-III/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tom-III/subscriptions","organizations_url":"https://api.github.com/users/Tom-III/orgs","repos_url":"https://api.github.com/users/Tom-III/repos","events_url":"https://api.github.com/users/Tom-III/events{/privacy}","received_events_url":"https://api.github.com/users/Tom-III/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-03T21:52:58Z","updated_at":"2018-02-03T22:00:06Z","closed_at":"2018-02-03T22:00:06Z","author_association":"NONE","body":"I have 2 PNG images that are the exact same except the one is 24 bit and the other is 32 bit (alpha) loading the 32 bit and 24 bit image yield different results even though the desired channels is set to 4?\r\nThe color array from the 24 bit image is 3072 long whereas the 32 bit image is 4096 long, what exactly is going wrong?"},"comment":{"url":"https://api.github.com/repos/nothings/stb/issues/comments/362857890","html_url":"https://github.com/nothings/stb/issues/551#issuecomment-362857890","issue_url":"https://api.github.com/repos/nothings/stb/issues/551","id":362857890,"user":{"login":"nothings","id":7525026,"avatar_url":"https://avatars1.githubusercontent.com/u/7525026?v=4","gravatar_id":"","url":"https://api.github.com/users/nothings","html_url":"https://github.com/nothings","followers_url":"https://api.github.com/users/nothings/followers","following_url":"https://api.github.com/users/nothings/following{/other_user}","gists_url":"https://api.github.com/users/nothings/gists{/gist_id}","starred_url":"https://api.github.com/users/nothings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nothings/subscriptions","organizations_url":"https://api.github.com/users/nothings/orgs","repos_url":"https://api.github.com/users/nothings/repos","events_url":"https://api.github.com/users/nothings/events{/privacy}","received_events_url":"https://api.github.com/users/nothings/received_events","type":"User","site_admin":false},"created_at":"2018-02-03T22:00:06Z","updated_at":"2018-02-03T22:00:06Z","author_association":"OWNER","body":"Actually, more likely it's *working*, but you're not understanding it correctly. Your assumption that the return length is 3072 wrong is probably incorrect because you're probably misinterpreting the third parameter, which as the documentation notes, is *number of channels in the file*, not the number of channels loaded. (If you specify 4 channels, then you know the file is loaded with 4 channels, and you can ignore the third parameter.)"}}
{"actor":{"display_login":"nothings"}}