{"action":"opened","issue":{"url":"https://api.github.com/repos/lovell/sharp/issues/1425","repository_url":"https://api.github.com/repos/lovell/sharp","labels_url":"https://api.github.com/repos/lovell/sharp/issues/1425/labels{/name}","comments_url":"https://api.github.com/repos/lovell/sharp/issues/1425/comments","events_url":"https://api.github.com/repos/lovell/sharp/issues/1425/events","html_url":"https://github.com/lovell/sharp/issues/1425","id":372984358,"node_id":"MDU6SXNzdWUzNzI5ODQzNTg=","number":1425,"title":"greyscale() sets wrong OutputInfo.channels","user":{"login":"koffmoff","id":2835896,"node_id":"MDQ6VXNlcjI4MzU4OTY=","avatar_url":"https://avatars0.githubusercontent.com/u/2835896?v=4","gravatar_id":"","url":"https://api.github.com/users/koffmoff","html_url":"https://github.com/koffmoff","followers_url":"https://api.github.com/users/koffmoff/followers","following_url":"https://api.github.com/users/koffmoff/following{/other_user}","gists_url":"https://api.github.com/users/koffmoff/gists{/gist_id}","starred_url":"https://api.github.com/users/koffmoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koffmoff/subscriptions","organizations_url":"https://api.github.com/users/koffmoff/orgs","repos_url":"https://api.github.com/users/koffmoff/repos","events_url":"https://api.github.com/users/koffmoff/events{/privacy}","received_events_url":"https://api.github.com/users/koffmoff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-23T12:53:18Z","updated_at":"2018-10-23T12:53:18Z","closed_at":null,"author_association":"NONE","body":"After doing a grayscale() operation, OutputInfo.channels = 3, when it really should be 1.\r\n\r\nExample:\r\n\r\n```ts\r\nconst logo = await logoSrc\r\n    .greyscale()\r\n    .raw()\r\n    .toBuffer({ resolveWithObject: true })\r\n// This is set to 3, which is wrong. It should be 1 since the picture is grayscale. Have to manually adjust it to 1.\r\nlogo.info.channels = 1\r\n```\r\n"}}
{"actor":{"display_login":"koffmoff"}}