{"action":"created","issue":{"url":"https://api.github.com/repos/nothings/stb/issues/184","labels_url":"https://api.github.com/repos/nothings/stb/issues/184/labels{/name}","comments_url":"https://api.github.com/repos/nothings/stb/issues/184/comments","events_url":"https://api.github.com/repos/nothings/stb/issues/184/events","html_url":"https://github.com/nothings/stb/issues/184","id":109333645,"number":184,"title":"std_image PNG loader on iOS hardware reverses red and blue channels.","user":{"login":"petedenial","id":14927956,"avatar_url":"https://avatars.githubusercontent.com/u/14927956?v=3","gravatar_id":"","url":"https://api.github.com/users/petedenial","html_url":"https://github.com/petedenial","followers_url":"https://api.github.com/users/petedenial/followers","following_url":"https://api.github.com/users/petedenial/following{/other_user}","gists_url":"https://api.github.com/users/petedenial/gists{/gist_id}","starred_url":"https://api.github.com/users/petedenial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petedenial/subscriptions","organizations_url":"https://api.github.com/users/petedenial/orgs","repos_url":"https://api.github.com/users/petedenial/repos","events_url":"https://api.github.com/users/petedenial/events{/privacy}","received_events_url":"https://api.github.com/users/petedenial/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-10-01T16:15:30Z","updated_at":"2015-10-07T22:27:41Z","closed_at":"2015-10-07T22:27:41Z","body":"When a PNG file is included in an application for use with native code, Xcode changes the PNG file.  There is a codepath within stb_image.h for this (deiphone).  When loading PNGs on iOS simulator the image loaded by stb_image is correct, but when running on actual iOS hardware, the red and blue channels are reversed  This was tested on iPad2 and iPad2 Air."},"comment":{"url":"https://api.github.com/repos/nothings/stb/issues/comments/146350823","html_url":"https://github.com/nothings/stb/issues/184#issuecomment-146350823","issue_url":"https://api.github.com/repos/nothings/stb/issues/184","id":146350823,"user":{"login":"petedenial","id":14927956,"avatar_url":"https://avatars.githubusercontent.com/u/14927956?v=3","gravatar_id":"","url":"https://api.github.com/users/petedenial","html_url":"https://github.com/petedenial","followers_url":"https://api.github.com/users/petedenial/followers","following_url":"https://api.github.com/users/petedenial/following{/other_user}","gists_url":"https://api.github.com/users/petedenial/gists{/gist_id}","starred_url":"https://api.github.com/users/petedenial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petedenial/subscriptions","organizations_url":"https://api.github.com/users/petedenial/orgs","repos_url":"https://api.github.com/users/petedenial/repos","events_url":"https://api.github.com/users/petedenial/events{/privacy}","received_events_url":"https://api.github.com/users/petedenial/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T22:27:41Z","updated_at":"2015-10-07T22:27:41Z","body":"Arg, I am clown shoes.  I was not calling the stbi_convert_iphone_png_to_rgb(1) function!  Once I added that just before my call to stbi_load_from_memory everything works as expected.  Sorry for wasting your time guys.  I owe you Snickers bars."}}