{"action":"created","issue":{"url":"https://api.github.com/repos/scipy/scipy/issues/5448","labels_url":"https://api.github.com/repos/scipy/scipy/issues/5448/labels{/name}","comments_url":"https://api.github.com/repos/scipy/scipy/issues/5448/comments","events_url":"https://api.github.com/repos/scipy/scipy/issues/5448/events","html_url":"https://github.com/scipy/scipy/issues/5448","id":114583654,"number":5448,"title":"misc.imread incorrectly handles 3 channels for some PNG images.  ","user":{"login":"tzutalin","id":3283822,"avatar_url":"https://avatars.githubusercontent.com/u/3283822?v=3","gravatar_id":"","url":"https://api.github.com/users/tzutalin","html_url":"https://github.com/tzutalin","followers_url":"https://api.github.com/users/tzutalin/followers","following_url":"https://api.github.com/users/tzutalin/following{/other_user}","gists_url":"https://api.github.com/users/tzutalin/gists{/gist_id}","starred_url":"https://api.github.com/users/tzutalin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tzutalin/subscriptions","organizations_url":"https://api.github.com/users/tzutalin/orgs","repos_url":"https://api.github.com/users/tzutalin/repos","events_url":"https://api.github.com/users/tzutalin/events{/privacy}","received_events_url":"https://api.github.com/users/tzutalin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/scipy/scipy/labels/defect","name":"defect","color":"e11d21"},{"url":"https://api.github.com/repos/scipy/scipy/labels/scipy.misc","name":"scipy.misc","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-02T12:22:11Z","updated_at":"2015-11-03T04:05:04Z","closed_at":null,"body":"Hi,\r\n  I found an issue on my environment. Ubuntu14.04, Python2.7.8, scipy==0.13.3\r\n I try to load a RGB image using misc.imread, but shape is wrong. \r\n\r\nThe snippet of my code:\r\n      im = misc.imread('sneak.png')\r\n      print im.shape\r\n\r\nThe shape is (400, 600) instead of (400, 600,3)\r\n\r\nYou can download the image by the link:\r\nhttps://copy.com/2FrdUaMLUl6iNe4d\r\n\r\nDoes someone know the root cause?\r\n\r\nRegards & Thanks.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/scipy/scipy/issues/comments/153234160","html_url":"https://github.com/scipy/scipy/issues/5448#issuecomment-153234160","issue_url":"https://api.github.com/repos/scipy/scipy/issues/5448","id":153234160,"user":{"login":"tzutalin","id":3283822,"avatar_url":"https://avatars.githubusercontent.com/u/3283822?v=3","gravatar_id":"","url":"https://api.github.com/users/tzutalin","html_url":"https://github.com/tzutalin","followers_url":"https://api.github.com/users/tzutalin/followers","following_url":"https://api.github.com/users/tzutalin/following{/other_user}","gists_url":"https://api.github.com/users/tzutalin/gists{/gist_id}","starred_url":"https://api.github.com/users/tzutalin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tzutalin/subscriptions","organizations_url":"https://api.github.com/users/tzutalin/orgs","repos_url":"https://api.github.com/users/tzutalin/repos","events_url":"https://api.github.com/users/tzutalin/events{/privacy}","received_events_url":"https://api.github.com/users/tzutalin/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T04:05:04Z","updated_at":"2015-11-03T04:05:04Z","body":"Hi @WarrenWeckesser, \r\n  Very appreciate.\r\n\r\nFor misc.imread function, should we submit a pull request using the bellow solution?\r\n\r\nim = Image.open(imagefile)\r\nif im.mode == 'P':\r\n       im = im.convert('RGB')\r\nim = np.asarray(im)\r\n\r\n\r\n"}}