{"action":"created","issue":{"url":"https://api.github.com/repos/scikit-image/scikit-image/issues/1623","labels_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/1623/labels{/name}","comments_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/1623/comments","events_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/1623/events","html_url":"https://github.com/scikit-image/scikit-image/issues/1623","id":97751927,"number":1623,"title":"`imsave` handles bool images incorrectly","user":{"login":"stefanv","id":45071,"avatar_url":"https://avatars.githubusercontent.com/u/45071?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanv","html_url":"https://github.com/stefanv","followers_url":"https://api.github.com/users/stefanv/followers","following_url":"https://api.github.com/users/stefanv/following{/other_user}","gists_url":"https://api.github.com/users/stefanv/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanv/subscriptions","organizations_url":"https://api.github.com/users/stefanv/orgs","repos_url":"https://api.github.com/users/stefanv/repos","events_url":"https://api.github.com/users/stefanv/events{/privacy}","received_events_url":"https://api.github.com/users/stefanv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-07-28T16:50:23Z","updated_at":"2015-08-04T18:13:18Z","closed_at":null,"body":"```\r\nimport numpy as np\r\nfrom skimage import io\r\n\r\nimage = np.random.random((100, 100)) > 0.5\r\n\r\nio.imsave('/tmp/foo.jpg', image, plugin='pil')\r\n```\r\n\r\nresults in a black image"},"comment":{"url":"https://api.github.com/repos/scikit-image/scikit-image/issues/comments/127697176","html_url":"https://github.com/scikit-image/scikit-image/issues/1623#issuecomment-127697176","issue_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/1623","id":127697176,"user":{"login":"wenzhexue","id":5642980,"avatar_url":"https://avatars.githubusercontent.com/u/5642980?v=3","gravatar_id":"","url":"https://api.github.com/users/wenzhexue","html_url":"https://github.com/wenzhexue","followers_url":"https://api.github.com/users/wenzhexue/followers","following_url":"https://api.github.com/users/wenzhexue/following{/other_user}","gists_url":"https://api.github.com/users/wenzhexue/gists{/gist_id}","starred_url":"https://api.github.com/users/wenzhexue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wenzhexue/subscriptions","organizations_url":"https://api.github.com/users/wenzhexue/orgs","repos_url":"https://api.github.com/users/wenzhexue/repos","events_url":"https://api.github.com/users/wenzhexue/events{/privacy}","received_events_url":"https://api.github.com/users/wenzhexue/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T18:13:18Z","updated_at":"2015-08-04T18:13:18Z","body":"@stefanv Warning would be good. I run into similar situation when saving a multiple label mask image in uint8 last month. ImageJ shows \"total\" black. I spent quite some time to debug until realizing it's not the code. "}}