{"action":"created","issue":{"url":"https://api.github.com/repos/dtschump/CImg/issues/86","repository_url":"https://api.github.com/repos/dtschump/CImg","labels_url":"https://api.github.com/repos/dtschump/CImg/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/dtschump/CImg/issues/86/comments","events_url":"https://api.github.com/repos/dtschump/CImg/issues/86/events","html_url":"https://github.com/dtschump/CImg/issues/86","id":176247960,"number":86,"title":" \"RGBtoYCbCr(): Instance is not a RGB image.\"","user":{"login":"boytom","id":10444214,"avatar_url":"https://avatars.githubusercontent.com/u/10444214?v=3","gravatar_id":"","url":"https://api.github.com/users/boytom","html_url":"https://github.com/boytom","followers_url":"https://api.github.com/users/boytom/followers","following_url":"https://api.github.com/users/boytom/following{/other_user}","gists_url":"https://api.github.com/users/boytom/gists{/gist_id}","starred_url":"https://api.github.com/users/boytom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boytom/subscriptions","organizations_url":"https://api.github.com/users/boytom/orgs","repos_url":"https://api.github.com/users/boytom/repos","events_url":"https://api.github.com/users/boytom/events{/privacy}","received_events_url":"https://api.github.com/users/boytom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-11T15:02:35Z","updated_at":"2016-09-11T15:37:51Z","closed_at":null,"body":"When I load a .png picture and convert it to YCbCr, The  \"RGBtoYCbCr(): Instance is not a RGB image.\" excepion is throwed. I find out the problem is that the png file has an alpha channel and the _spectrum is 4, but RGBtoYCbCr requires the value of _spectrum is 3. So, what should I do? So sorry about my poor English."},"comment":{"url":"https://api.github.com/repos/dtschump/CImg/issues/comments/246186690","html_url":"https://github.com/dtschump/CImg/issues/86#issuecomment-246186690","issue_url":"https://api.github.com/repos/dtschump/CImg/issues/86","id":246186690,"user":{"login":"dtschump","id":10114565,"avatar_url":"https://avatars.githubusercontent.com/u/10114565?v=3","gravatar_id":"","url":"https://api.github.com/users/dtschump","html_url":"https://github.com/dtschump","followers_url":"https://api.github.com/users/dtschump/followers","following_url":"https://api.github.com/users/dtschump/following{/other_user}","gists_url":"https://api.github.com/users/dtschump/gists{/gist_id}","starred_url":"https://api.github.com/users/dtschump/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtschump/subscriptions","organizations_url":"https://api.github.com/users/dtschump/orgs","repos_url":"https://api.github.com/users/dtschump/repos","events_url":"https://api.github.com/users/dtschump/events{/privacy}","received_events_url":"https://api.github.com/users/dtschump/received_events","type":"User","site_admin":false},"created_at":"2016-09-11T15:37:51Z","updated_at":"2016-09-11T15:37:51Z","body":"You can apply the RGB to YCbCr transform only on the three first channels, by using a shared image : \r\n\r\n    CImg<> rgba(\"file_rgba.png\");\r\n    CImg<> rgb = rgba.get_shared_channels(0,2);\r\n    rgb.RGBtoYCbCr();   // Here, image 'rgba' is modified since 'rgb' is a shared image.   \r\n\r\n"}}
{"actor":{"display_login":"dtschump"}}