{"action":"created","issue":{"url":"https://api.github.com/repos/lovell/sharp/issues/1113","repository_url":"https://api.github.com/repos/lovell/sharp","labels_url":"https://api.github.com/repos/lovell/sharp/issues/1113/labels{/name}","comments_url":"https://api.github.com/repos/lovell/sharp/issues/1113/comments","events_url":"https://api.github.com/repos/lovell/sharp/issues/1113/events","html_url":"https://github.com/lovell/sharp/issues/1113","id":294370067,"number":1113,"title":"How to use a mask image ?","user":{"login":"Felwin","id":24494771,"avatar_url":"https://avatars0.githubusercontent.com/u/24494771?v=4","gravatar_id":"","url":"https://api.github.com/users/Felwin","html_url":"https://github.com/Felwin","followers_url":"https://api.github.com/users/Felwin/followers","following_url":"https://api.github.com/users/Felwin/following{/other_user}","gists_url":"https://api.github.com/users/Felwin/gists{/gist_id}","starred_url":"https://api.github.com/users/Felwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Felwin/subscriptions","organizations_url":"https://api.github.com/users/Felwin/orgs","repos_url":"https://api.github.com/users/Felwin/repos","events_url":"https://api.github.com/users/Felwin/events{/privacy}","received_events_url":"https://api.github.com/users/Felwin/received_events","type":"User","site_admin":false},"labels":[{"id":52750126,"url":"https://api.github.com/repos/lovell/sharp/labels/question","name":"question","color":"fef2c0","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-05T12:05:49Z","updated_at":"2018-02-05T15:45:39Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI have an image that I successfully resized and croped (I mean extracted) and I would like to add a mask on it.\r\nWhat I mean is that I would like to extract any color channel of the mask (this is quite easy `extractChannel('red')` ) and make that channel the alpha channel of the first image. \r\nOf course both images are the same size.\r\n\r\nHope you can help me out"},"comment":{"url":"https://api.github.com/repos/lovell/sharp/issues/comments/363124320","html_url":"https://github.com/lovell/sharp/issues/1113#issuecomment-363124320","issue_url":"https://api.github.com/repos/lovell/sharp/issues/1113","id":363124320,"user":{"login":"Felwin","id":24494771,"avatar_url":"https://avatars0.githubusercontent.com/u/24494771?v=4","gravatar_id":"","url":"https://api.github.com/users/Felwin","html_url":"https://github.com/Felwin","followers_url":"https://api.github.com/users/Felwin/followers","following_url":"https://api.github.com/users/Felwin/following{/other_user}","gists_url":"https://api.github.com/users/Felwin/gists{/gist_id}","starred_url":"https://api.github.com/users/Felwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Felwin/subscriptions","organizations_url":"https://api.github.com/users/Felwin/orgs","repos_url":"https://api.github.com/users/Felwin/repos","events_url":"https://api.github.com/users/Felwin/events{/privacy}","received_events_url":"https://api.github.com/users/Felwin/received_events","type":"User","site_admin":false},"created_at":"2018-02-05T15:45:39Z","updated_at":"2018-02-05T15:45:39Z","author_association":"NONE","body":"Indeed, but I didn't figure it out how to make the red channel of image B being the alpha channel of image A.\r\nPlease forgive me if I am missing some obvious point here."}}
{"actor":{"display_login":"Felwin"}}