{"action":"created","issue":{"url":"https://api.github.com/repos/electron/electron/issues/14647","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/14647/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/14647/comments","events_url":"https://api.github.com/repos/electron/electron/issues/14647/events","html_url":"https://github.com/electron/electron/issues/14647","id":360732406,"node_id":"MDU6SXNzdWUzNjA3MzI0MDY=","number":14647,"title":"Clipboard How images become png format","user":{"login":"mofeiwo","id":10068397,"node_id":"MDQ6VXNlcjEwMDY4Mzk3","avatar_url":"https://avatars1.githubusercontent.com/u/10068397?v=4","gravatar_id":"","url":"https://api.github.com/users/mofeiwo","html_url":"https://github.com/mofeiwo","followers_url":"https://api.github.com/users/mofeiwo/followers","following_url":"https://api.github.com/users/mofeiwo/following{/other_user}","gists_url":"https://api.github.com/users/mofeiwo/gists{/gist_id}","starred_url":"https://api.github.com/users/mofeiwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mofeiwo/subscriptions","organizations_url":"https://api.github.com/users/mofeiwo/orgs","repos_url":"https://api.github.com/users/mofeiwo/repos","events_url":"https://api.github.com/users/mofeiwo/events{/privacy}","received_events_url":"https://api.github.com/users/mofeiwo/received_events","type":"User","site_admin":false},"labels":[{"id":839475038,"node_id":"MDU6TGFiZWw4Mzk0NzUwMzg=","url":"https://api.github.com/repos/electron/electron/labels/2-0-x","name":"2-0-x","color":"8d9ee8","default":false},{"id":520323169,"node_id":"MDU6TGFiZWw1MjAzMjMxNjk=","url":"https://api.github.com/repos/electron/electron/labels/bug%20:beetle:","name":"bug :beetle:","color":"fbca04","default":false},{"id":97403606,"node_id":"MDU6TGFiZWw5NzQwMzYwNg==","url":"https://api.github.com/repos/electron/electron/labels/platform/macOS","name":"platform/macOS","color":"c7def8","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-09-17T06:06:01Z","updated_at":"2018-10-25T18:52:06Z","closed_at":"2018-10-25T18:52:05Z","author_association":"NONE","body":"* Output of `node_modules/.bin/electron --version`:2.0.8\r\n* Operating System (Platform and Version):MacOS\r\n\r\n### Expected behavior\r\n![image](https://user-images.githubusercontent.com/10068397/45607960-78ccc280-ba82-11e8-950d-1945bebddac8.png)\r\n\r\n### Actual behavior\r\n![image](https://user-images.githubusercontent.com/10068397/45607833-94839900-ba81-11e8-813b-544f5c4958e3.png)\r\n\r\n```\r\nipcMain.on(\"copy\",(event, arg) =>{\r\n  const imagePath = \"1.png\"\r\n  const image = nativeImage.createFromPath(imagePath)\r\n  const { width, height } = image.getSize()\r\n  clipboard.writeImage(nativeImage.createFromBuffer(image.toPNG()),'png')\r\n  console.log(\"复制成功\",width,height,clipboard.availableFormats())\r\n})\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/electron/electron/issues/comments/433165047","html_url":"https://github.com/electron/electron/issues/14647#issuecomment-433165047","issue_url":"https://api.github.com/repos/electron/electron/issues/14647","id":433165047,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzE2NTA0Nw==","user":{"login":"codebytere","id":2036040,"node_id":"MDQ6VXNlcjIwMzYwNDA=","avatar_url":"https://avatars2.githubusercontent.com/u/2036040?v=4","gravatar_id":"","url":"https://api.github.com/users/codebytere","html_url":"https://github.com/codebytere","followers_url":"https://api.github.com/users/codebytere/followers","following_url":"https://api.github.com/users/codebytere/following{/other_user}","gists_url":"https://api.github.com/users/codebytere/gists{/gist_id}","starred_url":"https://api.github.com/users/codebytere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codebytere/subscriptions","organizations_url":"https://api.github.com/users/codebytere/orgs","repos_url":"https://api.github.com/users/codebytere/repos","events_url":"https://api.github.com/users/codebytere/events{/privacy}","received_events_url":"https://api.github.com/users/codebytere/received_events","type":"User","site_admin":true},"created_at":"2018-10-25T18:52:05Z","updated_at":"2018-10-25T18:52:05Z","author_association":"MEMBER","body":"Closing as not reproducible."}}
{"actor":{"display_login":"codebytere"}}