{"action":"created","comment":{"url":"https://api.github.com/repos/python-pillow/Pillow/pulls/comments/59137093","id":59137093,"diff_hunk":"@@ -2206,6 +2206,8 @@ def fromqpixmap(im):\n     # first two members of shape are set to one\n     # ((1, 1), \"|b1\"): (\"1\", \"1\"), # broken\n     ((1, 1), \"|u1\"): (\"L\", \"L\"),\n+    ((1, 1), \"<u2\"): (\"L\", \"I;16\"),\n+    ((1, 1), \">u2\"): (\"L\", \"I;16B\"),\n     ((1, 1), \"|i1\"): (\"I\", \"I;8\"),","path":"PIL/Image.py","position":6,"original_position":6,"commit_id":"624d9b8521e82f466025269ffd7e74fdb1ee06f2","original_commit_id":"624d9b8521e82f466025269ffd7e74fdb1ee06f2","user":{"login":"mairsbw","id":13241204,"avatar_url":"https://avatars.githubusercontent.com/u/13241204?v=3","gravatar_id":"","url":"https://api.github.com/users/mairsbw","html_url":"https://github.com/mairsbw","followers_url":"https://api.github.com/users/mairsbw/followers","following_url":"https://api.github.com/users/mairsbw/following{/other_user}","gists_url":"https://api.github.com/users/mairsbw/gists{/gist_id}","starred_url":"https://api.github.com/users/mairsbw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mairsbw/subscriptions","organizations_url":"https://api.github.com/users/mairsbw/orgs","repos_url":"https://api.github.com/users/mairsbw/repos","events_url":"https://api.github.com/users/mairsbw/events{/privacy}","received_events_url":"https://api.github.com/users/mairsbw/received_events","type":"User","site_admin":false},"body":"Additionally, I believe the \"I\" means that it's a color image, but in this case it's not. I don't quite understand all of these special strings that Pillow uses, so maybe I'm wrong here. I do believe this code is working as shown by my testcase. You can fully roundtrip a uint16 image with no dataloss.","created_at":"2016-04-10T16:52:36Z","updated_at":"2016-04-10T16:52:36Z","html_url":"https://github.com/python-pillow/Pillow/pull/1819#discussion_r59137093","pull_request_url":"https://api.github.com/repos/python-pillow/Pillow/pulls/1819","_links":{"self":{"href":"https://api.github.com/repos/python-pillow/Pillow/pulls/comments/59137093"},"html":{"href":"https://github.com/python-pillow/Pillow/pull/1819#discussion_r59137093"},"pull_request":{"href":"https://api.github.com/repos/python-pillow/Pillow/pulls/1819"}}},"pull_request":{"url":"https://api.github.com/repos/python-pillow/Pillow/pulls/1819","id":65885273,"html_url":"https://github.com/python-pillow/Pillow/pull/1819","diff_url":"https://github.com/python-pillow/Pillow/pull/1819.diff","patch_url":"https://github.com/python-pillow/Pillow/pull/1819.patch","issue_url":"https://api.github.com/repos/python-pillow/Pillow/issues/1819","number":1819,"state":"open","locked":false,"title":"Add support for writing 16-bit greyscale images","user":{"login":"mairsbw","id":13241204,"avatar_url":"https://avatars.githubusercontent.com/u/13241204?v=3","gravatar_id":"","url":"https://api.github.com/users/mairsbw","html_url":"https://github.com/mairsbw","followers_url":"https://api.github.com/users/mairsbw/followers","following_url":"https://api.github.com/users/mairsbw/following{/other_user}","gists_url":"https://api.github.com/users/mairsbw/gists{/gist_id}","starred_url":"https://api.github.com/users/mairsbw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mairsbw/subscriptions","organizations_url":"https://api.github.com/users/mairsbw/orgs","repos_url":"https://api.github.com/users/mairsbw/repos","events_url":"https://api.github.com/users/mairsbw/events{/privacy}","received_events_url":"https://api.github.com/users/mairsbw/received_events","type":"User","site_admin":false},"body":"Addresses #1514.\r\n\r\nThis has been tested and found working for writing back uint16 greyscale TIFFs little-endian TIFFs. A corresponding test has been added to the Tests directory with include an original test image collected by myself and its license is CC0 (it should be noted that some of the other Image tests failed when I ran them, but it may be a path issue since I'm running them on Windows versus a library problem).\r\n","created_at":"2016-04-09T16:23:34Z","updated_at":"2016-04-10T16:52:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6130f3af215c56e749f29d67fe7973962af8185b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/python-pillow/Pillow/pulls/1819/commits","review_comments_url":"https://api.github.com/repos/python-pillow/Pillow/pulls/1819/comments","review_comment_url":"https://api.github.com/repos/python-pillow/Pillow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/python-pillow/Pillow/issues/1819/comments","statuses_url":"https://api.github.com/repos/python-pillow/Pillow/statuses/624d9b8521e82f466025269ffd7e74fdb1ee06f2","head":{"label":"mairsbw:master","ref":"master","sha":"624d9b8521e82f466025269ffd7e74fdb1ee06f2","user":{"login":"mairsbw","id":13241204,"avatar_url":"https://avatars.githubusercontent.com/u/13241204?v=3","gravatar_id":"","url":"https://api.github.com/users/mairsbw","html_url":"https://github.com/mairsbw","followers_url":"https://api.github.com/users/mairsbw/followers","following_url":"https://api.github.com/users/mairsbw/following{/other_user}","gists_url":"https://api.github.com/users/mairsbw/gists{/gist_id}","starred_url":"https://api.github.com/users/mairsbw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mairsbw/subscriptions","organizations_url":"https://api.github.com/users/mairsbw/orgs","repos_url":"https://api.github.com/users/mairsbw/repos","events_url":"https://api.github.com/users/mairsbw/events{/privacy}","received_events_url":"https://api.github.com/users/mairsbw/received_events","type":"User","site_admin":false},"repo":{"id":55851760,"name":"Pillow","full_name":"mairsbw/Pillow","owner":{"login":"mairsbw","id":13241204,"avatar_url":"https://avatars.githubusercontent.com/u/13241204?v=3","gravatar_id":"","url":"https://api.github.com/users/mairsbw","html_url":"https://github.com/mairsbw","followers_url":"https://api.github.com/users/mairsbw/followers","following_url":"https://api.github.com/users/mairsbw/following{/other_user}","gists_url":"https://api.github.com/users/mairsbw/gists{/gist_id}","starred_url":"https://api.github.com/users/mairsbw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mairsbw/subscriptions","organizations_url":"https://api.github.com/users/mairsbw/orgs","repos_url":"https://api.github.com/users/mairsbw/repos","events_url":"https://api.github.com/users/mairsbw/events{/privacy}","received_events_url":"https://api.github.com/users/mairsbw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mairsbw/Pillow","description":"The friendly PIL fork","fork":true,"url":"https://api.github.com/repos/mairsbw/Pillow","forks_url":"https://api.github.com/repos/mairsbw/Pillow/forks","keys_url":"https://api.github.com/repos/mairsbw/Pillow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mairsbw/Pillow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mairsbw/Pillow/teams","hooks_url":"https://api.github.com/repos/mairsbw/Pillow/hooks","issue_events_url":"https://api.github.com/repos/mairsbw/Pillow/issues/events{/number}","events_url":"https://api.github.com/repos/mairsbw/Pillow/events","assignees_url":"https://api.github.com/repos/mairsbw/Pillow/assignees{/user}","branches_url":"https://api.github.com/repos/mairsbw/Pillow/branches{/branch}","tags_url":"https://api.github.com/repos/mairsbw/Pillow/tags","blobs_url":"https://api.github.com/repos/mairsbw/Pillow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mairsbw/Pillow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mairsbw/Pillow/git/refs{/sha}","trees_url":"https://api.github.com/repos/mairsbw/Pillow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mairsbw/Pillow/statuses/{sha}","languages_url":"https://api.github.com/repos/mairsbw/Pillow/languages","stargazers_url":"https://api.github.com/repos/mairsbw/Pillow/stargazers","contributors_url":"https://api.github.com/repos/mairsbw/Pillow/contributors","subscribers_url":"https://api.github.com/repos/mairsbw/Pillow/subscribers","subscription_url":"https://api.github.com/repos/mairsbw/Pillow/subscription","commits_url":"https://api.github.com/repos/mairsbw/Pillow/commits{/sha}","git_commits_url":"https://api.github.com/repos/mairsbw/Pillow/git/commits{/sha}","comments_url":"https://api.github.com/repos/mairsbw/Pillow/comments{/number}","issue_comment_url":"https://api.github.com/repos/mairsbw/Pillow/issues/comments{/number}","contents_url":"https://api.github.com/repos/mairsbw/Pillow/contents/{+path}","compare_url":"https://api.github.com/repos/mairsbw/Pillow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mairsbw/Pillow/merges","archive_url":"https://api.github.com/repos/mairsbw/Pillow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mairsbw/Pillow/downloads","issues_url":"https://api.github.com/repos/mairsbw/Pillow/issues{/number}","pulls_url":"https://api.github.com/repos/mairsbw/Pillow/pulls{/number}","milestones_url":"https://api.github.com/repos/mairsbw/Pillow/milestones{/number}","notifications_url":"https://api.github.com/repos/mairsbw/Pillow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mairsbw/Pillow/labels{/name}","releases_url":"https://api.github.com/repos/mairsbw/Pillow/releases{/id}","deployments_url":"https://api.github.com/repos/mairsbw/Pillow/deployments","created_at":"2016-04-09T15:27:37Z","updated_at":"2016-04-09T15:27:39Z","pushed_at":"2016-04-09T16:16:54Z","git_url":"git://github.com/mairsbw/Pillow.git","ssh_url":"git@github.com:mairsbw/Pillow.git","clone_url":"https://github.com/mairsbw/Pillow.git","svn_url":"https://github.com/mairsbw/Pillow","homepage":"http://python-pillow.org","size":19409,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"python-pillow:master","ref":"master","sha":"9fa3fb98f3d7786adcefa11c3763446056c7256b","user":{"login":"python-pillow","id":2036701,"avatar_url":"https://avatars.githubusercontent.com/u/2036701?v=3","gravatar_id":"","url":"https://api.github.com/users/python-pillow","html_url":"https://github.com/python-pillow","followers_url":"https://api.github.com/users/python-pillow/followers","following_url":"https://api.github.com/users/python-pillow/following{/other_user}","gists_url":"https://api.github.com/users/python-pillow/gists{/gist_id}","starred_url":"https://api.github.com/users/python-pillow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python-pillow/subscriptions","organizations_url":"https://api.github.com/users/python-pillow/orgs","repos_url":"https://api.github.com/users/python-pillow/repos","events_url":"https://api.github.com/users/python-pillow/events{/privacy}","received_events_url":"https://api.github.com/users/python-pillow/received_events","type":"Organization","site_admin":false},"repo":{"id":5171600,"name":"Pillow","full_name":"python-pillow/Pillow","owner":{"login":"python-pillow","id":2036701,"avatar_url":"https://avatars.githubusercontent.com/u/2036701?v=3","gravatar_id":"","url":"https://api.github.com/users/python-pillow","html_url":"https://github.com/python-pillow","followers_url":"https://api.github.com/users/python-pillow/followers","following_url":"https://api.github.com/users/python-pillow/following{/other_user}","gists_url":"https://api.github.com/users/python-pillow/gists{/gist_id}","starred_url":"https://api.github.com/users/python-pillow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python-pillow/subscriptions","organizations_url":"https://api.github.com/users/python-pillow/orgs","repos_url":"https://api.github.com/users/python-pillow/repos","events_url":"https://api.github.com/users/python-pillow/events{/privacy}","received_events_url":"https://api.github.com/users/python-pillow/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/python-pillow/Pillow","description":"The friendly PIL fork","fork":false,"url":"https://api.github.com/repos/python-pillow/Pillow","forks_url":"https://api.github.com/repos/python-pillow/Pillow/forks","keys_url":"https://api.github.com/repos/python-pillow/Pillow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/python-pillow/Pillow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/python-pillow/Pillow/teams","hooks_url":"https://api.github.com/repos/python-pillow/Pillow/hooks","issue_events_url":"https://api.github.com/repos/python-pillow/Pillow/issues/events{/number}","events_url":"https://api.github.com/repos/python-pillow/Pillow/events","assignees_url":"https://api.github.com/repos/python-pillow/Pillow/assignees{/user}","branches_url":"https://api.github.com/repos/python-pillow/Pillow/branches{/branch}","tags_url":"https://api.github.com/repos/python-pillow/Pillow/tags","blobs_url":"https://api.github.com/repos/python-pillow/Pillow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/python-pillow/Pillow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/python-pillow/Pillow/git/refs{/sha}","trees_url":"https://api.github.com/repos/python-pillow/Pillow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/python-pillow/Pillow/statuses/{sha}","languages_url":"https://api.github.com/repos/python-pillow/Pillow/languages","stargazers_url":"https://api.github.com/repos/python-pillow/Pillow/stargazers","contributors_url":"https://api.github.com/repos/python-pillow/Pillow/contributors","subscribers_url":"https://api.github.com/repos/python-pillow/Pillow/subscribers","subscription_url":"https://api.github.com/repos/python-pillow/Pillow/subscription","commits_url":"https://api.github.com/repos/python-pillow/Pillow/commits{/sha}","git_commits_url":"https://api.github.com/repos/python-pillow/Pillow/git/commits{/sha}","comments_url":"https://api.github.com/repos/python-pillow/Pillow/comments{/number}","issue_comment_url":"https://api.github.com/repos/python-pillow/Pillow/issues/comments{/number}","contents_url":"https://api.github.com/repos/python-pillow/Pillow/contents/{+path}","compare_url":"https://api.github.com/repos/python-pillow/Pillow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/python-pillow/Pillow/merges","archive_url":"https://api.github.com/repos/python-pillow/Pillow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/python-pillow/Pillow/downloads","issues_url":"https://api.github.com/repos/python-pillow/Pillow/issues{/number}","pulls_url":"https://api.github.com/repos/python-pillow/Pillow/pulls{/number}","milestones_url":"https://api.github.com/repos/python-pillow/Pillow/milestones{/number}","notifications_url":"https://api.github.com/repos/python-pillow/Pillow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/python-pillow/Pillow/labels{/name}","releases_url":"https://api.github.com/repos/python-pillow/Pillow/releases{/id}","deployments_url":"https://api.github.com/repos/python-pillow/Pillow/deployments","created_at":"2012-07-24T21:38:39Z","updated_at":"2016-04-10T00:05:16Z","pushed_at":"2016-04-10T14:17:08Z","git_url":"git://github.com/python-pillow/Pillow.git","ssh_url":"git@github.com:python-pillow/Pillow.git","clone_url":"https://github.com/python-pillow/Pillow.git","svn_url":"https://github.com/python-pillow/Pillow","homepage":"http://python-pillow.org","size":23876,"stargazers_count":2355,"watchers_count":2355,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":504,"mirror_url":null,"open_issues_count":148,"forks":504,"open_issues":148,"watchers":2355,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/python-pillow/Pillow/pulls/1819"},"html":{"href":"https://github.com/python-pillow/Pillow/pull/1819"},"issue":{"href":"https://api.github.com/repos/python-pillow/Pillow/issues/1819"},"comments":{"href":"https://api.github.com/repos/python-pillow/Pillow/issues/1819/comments"},"review_comments":{"href":"https://api.github.com/repos/python-pillow/Pillow/pulls/1819/comments"},"review_comment":{"href":"https://api.github.com/repos/python-pillow/Pillow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/python-pillow/Pillow/pulls/1819/commits"},"statuses":{"href":"https://api.github.com/repos/python-pillow/Pillow/statuses/624d9b8521e82f466025269ffd7e74fdb1ee06f2"}}}}