{"action":"closed","number":6839,"pull_request":{"url":"https://api.github.com/repos/opencv/opencv/pulls/6839","id":76760473,"html_url":"https://github.com/opencv/opencv/pull/6839","diff_url":"https://github.com/opencv/opencv/pull/6839.diff","patch_url":"https://github.com/opencv/opencv/pull/6839.patch","issue_url":"https://api.github.com/repos/opencv/opencv/issues/6839","number":6839,"state":"closed","locked":false,"title":"Better png transparency handling","user":{"login":"vpisarev","id":2110786,"avatar_url":"https://avatars.githubusercontent.com/u/2110786?v=3","gravatar_id":"","url":"https://api.github.com/users/vpisarev","html_url":"https://github.com/vpisarev","followers_url":"https://api.github.com/users/vpisarev/followers","following_url":"https://api.github.com/users/vpisarev/following{/other_user}","gists_url":"https://api.github.com/users/vpisarev/gists{/gist_id}","starred_url":"https://api.github.com/users/vpisarev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpisarev/subscriptions","organizations_url":"https://api.github.com/users/vpisarev/orgs","repos_url":"https://api.github.com/users/vpisarev/repos","events_url":"https://api.github.com/users/vpisarev/events{/privacy}","received_events_url":"https://api.github.com/users/vpisarev/received_events","type":"User","site_admin":false},"body":"### Former  #5987 by @thierrylamarre:\r\n\r\n### Binary transparency\r\nThe current png decoder ignores pngs binary transparency except for palette images.\r\nThis adds binary transparency awareness by adding an alpha channel to the resulting `Mat` for RGB and grayscale pngs featuring binary transparency.\r\n\r\n### Grayscale with alpha channel\r\nSupport for grayscale pngs with alpha channel is also added to both the png decoder and the png encoder.\r\nNote that grayscale pngs with transparency (alpha channel or binary transparency) will now result in a 2-channel image so the `imwrite`/`imencode` functions were made to accept 2-channel images.\r\n","created_at":"2016-07-08T14:22:39Z","updated_at":"2016-07-18T18:24:42Z","closed_at":"2016-07-18T18:24:42Z","merged_at":"2016-07-18T18:24:42Z","merge_commit_sha":"ea911d34c60d3868debc9dc3a5dc1179d93d5baf","assignee":{"login":"vpisarev","id":2110786,"avatar_url":"https://avatars.githubusercontent.com/u/2110786?v=3","gravatar_id":"","url":"https://api.github.com/users/vpisarev","html_url":"https://github.com/vpisarev","followers_url":"https://api.github.com/users/vpisarev/followers","following_url":"https://api.github.com/users/vpisarev/following{/other_user}","gists_url":"https://api.github.com/users/vpisarev/gists{/gist_id}","starred_url":"https://api.github.com/users/vpisarev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpisarev/subscriptions","organizations_url":"https://api.github.com/users/vpisarev/orgs","repos_url":"https://api.github.com/users/vpisarev/repos","events_url":"https://api.github.com/users/vpisarev/events{/privacy}","received_events_url":"https://api.github.com/users/vpisarev/received_events","type":"User","site_admin":false},"assignees":[{"login":"vpisarev","id":2110786,"avatar_url":"https://avatars.githubusercontent.com/u/2110786?v=3","gravatar_id":"","url":"https://api.github.com/users/vpisarev","html_url":"https://github.com/vpisarev","followers_url":"https://api.github.com/users/vpisarev/followers","following_url":"https://api.github.com/users/vpisarev/following{/other_user}","gists_url":"https://api.github.com/users/vpisarev/gists{/gist_id}","starred_url":"https://api.github.com/users/vpisarev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpisarev/subscriptions","organizations_url":"https://api.github.com/users/vpisarev/orgs","repos_url":"https://api.github.com/users/vpisarev/repos","events_url":"https://api.github.com/users/vpisarev/events{/privacy}","received_events_url":"https://api.github.com/users/vpisarev/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/opencv/opencv/pulls/6839/commits","review_comments_url":"https://api.github.com/repos/opencv/opencv/pulls/6839/comments","review_comment_url":"https://api.github.com/repos/opencv/opencv/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opencv/opencv/issues/6839/comments","statuses_url":"https://api.github.com/repos/opencv/opencv/statuses/ea911d34c60d3868debc9dc3a5dc1179d93d5baf","head":{"label":"thierrylamarre:better_png_transparency","ref":"better_png_transparency","sha":"ea911d34c60d3868debc9dc3a5dc1179d93d5baf","user":{"login":"thierrylamarre","id":1526027,"avatar_url":"https://avatars.githubusercontent.com/u/1526027?v=3","gravatar_id":"","url":"https://api.github.com/users/thierrylamarre","html_url":"https://github.com/thierrylamarre","followers_url":"https://api.github.com/users/thierrylamarre/followers","following_url":"https://api.github.com/users/thierrylamarre/following{/other_user}","gists_url":"https://api.github.com/users/thierrylamarre/gists{/gist_id}","starred_url":"https://api.github.com/users/thierrylamarre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thierrylamarre/subscriptions","organizations_url":"https://api.github.com/users/thierrylamarre/orgs","repos_url":"https://api.github.com/users/thierrylamarre/repos","events_url":"https://api.github.com/users/thierrylamarre/events{/privacy}","received_events_url":"https://api.github.com/users/thierrylamarre/received_events","type":"User","site_admin":false},"repo":{"id":49647123,"name":"opencv","full_name":"thierrylamarre/opencv","owner":{"login":"thierrylamarre","id":1526027,"avatar_url":"https://avatars.githubusercontent.com/u/1526027?v=3","gravatar_id":"","url":"https://api.github.com/users/thierrylamarre","html_url":"https://github.com/thierrylamarre","followers_url":"https://api.github.com/users/thierrylamarre/followers","following_url":"https://api.github.com/users/thierrylamarre/following{/other_user}","gists_url":"https://api.github.com/users/thierrylamarre/gists{/gist_id}","starred_url":"https://api.github.com/users/thierrylamarre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thierrylamarre/subscriptions","organizations_url":"https://api.github.com/users/thierrylamarre/orgs","repos_url":"https://api.github.com/users/thierrylamarre/repos","events_url":"https://api.github.com/users/thierrylamarre/events{/privacy}","received_events_url":"https://api.github.com/users/thierrylamarre/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thierrylamarre/opencv","description":"Open Source Computer Vision Library","fork":true,"url":"https://api.github.com/repos/thierrylamarre/opencv","forks_url":"https://api.github.com/repos/thierrylamarre/opencv/forks","keys_url":"https://api.github.com/repos/thierrylamarre/opencv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thierrylamarre/opencv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thierrylamarre/opencv/teams","hooks_url":"https://api.github.com/repos/thierrylamarre/opencv/hooks","issue_events_url":"https://api.github.com/repos/thierrylamarre/opencv/issues/events{/number}","events_url":"https://api.github.com/repos/thierrylamarre/opencv/events","assignees_url":"https://api.github.com/repos/thierrylamarre/opencv/assignees{/user}","branches_url":"https://api.github.com/repos/thierrylamarre/opencv/branches{/branch}","tags_url":"https://api.github.com/repos/thierrylamarre/opencv/tags","blobs_url":"https://api.github.com/repos/thierrylamarre/opencv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thierrylamarre/opencv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thierrylamarre/opencv/git/refs{/sha}","trees_url":"https://api.github.com/repos/thierrylamarre/opencv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thierrylamarre/opencv/statuses/{sha}","languages_url":"https://api.github.com/repos/thierrylamarre/opencv/languages","stargazers_url":"https://api.github.com/repos/thierrylamarre/opencv/stargazers","contributors_url":"https://api.github.com/repos/thierrylamarre/opencv/contributors","subscribers_url":"https://api.github.com/repos/thierrylamarre/opencv/subscribers","subscription_url":"https://api.github.com/repos/thierrylamarre/opencv/subscription","commits_url":"https://api.github.com/repos/thierrylamarre/opencv/commits{/sha}","git_commits_url":"https://api.github.com/repos/thierrylamarre/opencv/git/commits{/sha}","comments_url":"https://api.github.com/repos/thierrylamarre/opencv/comments{/number}","issue_comment_url":"https://api.github.com/repos/thierrylamarre/opencv/issues/comments{/number}","contents_url":"https://api.github.com/repos/thierrylamarre/opencv/contents/{+path}","compare_url":"https://api.github.com/repos/thierrylamarre/opencv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thierrylamarre/opencv/merges","archive_url":"https://api.github.com/repos/thierrylamarre/opencv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thierrylamarre/opencv/downloads","issues_url":"https://api.github.com/repos/thierrylamarre/opencv/issues{/number}","pulls_url":"https://api.github.com/repos/thierrylamarre/opencv/pulls{/number}","milestones_url":"https://api.github.com/repos/thierrylamarre/opencv/milestones{/number}","notifications_url":"https://api.github.com/repos/thierrylamarre/opencv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thierrylamarre/opencv/labels{/name}","releases_url":"https://api.github.com/repos/thierrylamarre/opencv/releases{/id}","deployments_url":"https://api.github.com/repos/thierrylamarre/opencv/deployments","created_at":"2016-01-14T12:53:20Z","updated_at":"2016-01-14T12:53:31Z","pushed_at":"2016-07-14T12:58:17Z","git_url":"git://github.com/thierrylamarre/opencv.git","ssh_url":"git@github.com:thierrylamarre/opencv.git","clone_url":"https://github.com/thierrylamarre/opencv.git","svn_url":"https://github.com/thierrylamarre/opencv","homepage":"opencv.org","size":420384,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"opencv:master","ref":"master","sha":"9bda0546f8f05f70ebbd97930a1de893e563fc9c","user":{"login":"opencv","id":5009934,"avatar_url":"https://avatars.githubusercontent.com/u/5009934?v=3","gravatar_id":"","url":"https://api.github.com/users/opencv","html_url":"https://github.com/opencv","followers_url":"https://api.github.com/users/opencv/followers","following_url":"https://api.github.com/users/opencv/following{/other_user}","gists_url":"https://api.github.com/users/opencv/gists{/gist_id}","starred_url":"https://api.github.com/users/opencv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencv/subscriptions","organizations_url":"https://api.github.com/users/opencv/orgs","repos_url":"https://api.github.com/users/opencv/repos","events_url":"https://api.github.com/users/opencv/events{/privacy}","received_events_url":"https://api.github.com/users/opencv/received_events","type":"Organization","site_admin":false},"repo":{"id":5108051,"name":"opencv","full_name":"opencv/opencv","owner":{"login":"opencv","id":5009934,"avatar_url":"https://avatars.githubusercontent.com/u/5009934?v=3","gravatar_id":"","url":"https://api.github.com/users/opencv","html_url":"https://github.com/opencv","followers_url":"https://api.github.com/users/opencv/followers","following_url":"https://api.github.com/users/opencv/following{/other_user}","gists_url":"https://api.github.com/users/opencv/gists{/gist_id}","starred_url":"https://api.github.com/users/opencv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencv/subscriptions","organizations_url":"https://api.github.com/users/opencv/orgs","repos_url":"https://api.github.com/users/opencv/repos","events_url":"https://api.github.com/users/opencv/events{/privacy}","received_events_url":"https://api.github.com/users/opencv/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opencv/opencv","description":"Open Source Computer Vision Library","fork":false,"url":"https://api.github.com/repos/opencv/opencv","forks_url":"https://api.github.com/repos/opencv/opencv/forks","keys_url":"https://api.github.com/repos/opencv/opencv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opencv/opencv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opencv/opencv/teams","hooks_url":"https://api.github.com/repos/opencv/opencv/hooks","issue_events_url":"https://api.github.com/repos/opencv/opencv/issues/events{/number}","events_url":"https://api.github.com/repos/opencv/opencv/events","assignees_url":"https://api.github.com/repos/opencv/opencv/assignees{/user}","branches_url":"https://api.github.com/repos/opencv/opencv/branches{/branch}","tags_url":"https://api.github.com/repos/opencv/opencv/tags","blobs_url":"https://api.github.com/repos/opencv/opencv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opencv/opencv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opencv/opencv/git/refs{/sha}","trees_url":"https://api.github.com/repos/opencv/opencv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opencv/opencv/statuses/{sha}","languages_url":"https://api.github.com/repos/opencv/opencv/languages","stargazers_url":"https://api.github.com/repos/opencv/opencv/stargazers","contributors_url":"https://api.github.com/repos/opencv/opencv/contributors","subscribers_url":"https://api.github.com/repos/opencv/opencv/subscribers","subscription_url":"https://api.github.com/repos/opencv/opencv/subscription","commits_url":"https://api.github.com/repos/opencv/opencv/commits{/sha}","git_commits_url":"https://api.github.com/repos/opencv/opencv/git/commits{/sha}","comments_url":"https://api.github.com/repos/opencv/opencv/comments{/number}","issue_comment_url":"https://api.github.com/repos/opencv/opencv/issues/comments{/number}","contents_url":"https://api.github.com/repos/opencv/opencv/contents/{+path}","compare_url":"https://api.github.com/repos/opencv/opencv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opencv/opencv/merges","archive_url":"https://api.github.com/repos/opencv/opencv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opencv/opencv/downloads","issues_url":"https://api.github.com/repos/opencv/opencv/issues{/number}","pulls_url":"https://api.github.com/repos/opencv/opencv/pulls{/number}","milestones_url":"https://api.github.com/repos/opencv/opencv/milestones{/number}","notifications_url":"https://api.github.com/repos/opencv/opencv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opencv/opencv/labels{/name}","releases_url":"https://api.github.com/repos/opencv/opencv/releases{/id}","deployments_url":"https://api.github.com/repos/opencv/opencv/deployments","created_at":"2012-07-19T09:40:17Z","updated_at":"2016-07-18T18:13:30Z","pushed_at":"2016-07-18T18:24:36Z","git_url":"git://github.com/opencv/opencv.git","ssh_url":"git@github.com:opencv/opencv.git","clone_url":"https://github.com/opencv/opencv.git","svn_url":"https://github.com/opencv/opencv","homepage":"opencv.org","size":1077421,"stargazers_count":10309,"watchers_count":10309,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8670,"mirror_url":null,"open_issues_count":975,"forks":8670,"open_issues":975,"watchers":10309,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/opencv/opencv/pulls/6839"},"html":{"href":"https://github.com/opencv/opencv/pull/6839"},"issue":{"href":"https://api.github.com/repos/opencv/opencv/issues/6839"},"comments":{"href":"https://api.github.com/repos/opencv/opencv/issues/6839/comments"},"review_comments":{"href":"https://api.github.com/repos/opencv/opencv/pulls/6839/comments"},"review_comment":{"href":"https://api.github.com/repos/opencv/opencv/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opencv/opencv/pulls/6839/commits"},"statuses":{"href":"https://api.github.com/repos/opencv/opencv/statuses/ea911d34c60d3868debc9dc3a5dc1179d93d5baf"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"opencv-pushbot","id":2051563,"avatar_url":"https://avatars.githubusercontent.com/u/2051563?v=3","gravatar_id":"","url":"https://api.github.com/users/opencv-pushbot","html_url":"https://github.com/opencv-pushbot","followers_url":"https://api.github.com/users/opencv-pushbot/followers","following_url":"https://api.github.com/users/opencv-pushbot/following{/other_user}","gists_url":"https://api.github.com/users/opencv-pushbot/gists{/gist_id}","starred_url":"https://api.github.com/users/opencv-pushbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencv-pushbot/subscriptions","organizations_url":"https://api.github.com/users/opencv-pushbot/orgs","repos_url":"https://api.github.com/users/opencv-pushbot/repos","events_url":"https://api.github.com/users/opencv-pushbot/events{/privacy}","received_events_url":"https://api.github.com/users/opencv-pushbot/received_events","type":"User","site_admin":false},"comments":3,"review_comments":2,"commits":4,"additions":7,"deletions":8,"changed_files":1}}
{"actor":{"display_login":"opencv-pushbot"}}