{"action":"created","issue":{"url":"https://api.github.com/repos/lovell/sharp/issues/1196","repository_url":"https://api.github.com/repos/lovell/sharp","labels_url":"https://api.github.com/repos/lovell/sharp/issues/1196/labels{/name}","comments_url":"https://api.github.com/repos/lovell/sharp/issues/1196/comments","events_url":"https://api.github.com/repos/lovell/sharp/issues/1196/events","html_url":"https://github.com/lovell/sharp/issues/1196","id":315490446,"number":1196,"title":"how can be done create new image with sharp?","user":{"login":"hbakhtiyor","id":3434496,"avatar_url":"https://avatars0.githubusercontent.com/u/3434496?v=4","gravatar_id":"","url":"https://api.github.com/users/hbakhtiyor","html_url":"https://github.com/hbakhtiyor","followers_url":"https://api.github.com/users/hbakhtiyor/followers","following_url":"https://api.github.com/users/hbakhtiyor/following{/other_user}","gists_url":"https://api.github.com/users/hbakhtiyor/gists{/gist_id}","starred_url":"https://api.github.com/users/hbakhtiyor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hbakhtiyor/subscriptions","organizations_url":"https://api.github.com/users/hbakhtiyor/orgs","repos_url":"https://api.github.com/users/hbakhtiyor/repos","events_url":"https://api.github.com/users/hbakhtiyor/events{/privacy}","received_events_url":"https://api.github.com/users/hbakhtiyor/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":4,"created_at":"2018-04-18T13:54:47Z","updated_at":"2018-04-18T17:31:32Z","closed_at":null,"author_association":"NONE","body":"want to convert the simple canvas example using sharp, and get raw image.\r\n\r\n```js\r\nvar Canvas = require('canvas');\r\n// use node-canvas\r\nvar canvas = new Canvas(320, 240);\r\nvar ctx = canvas.getContext('2d');\r\n\r\n// red rectangle\r\nctx.fillStyle = '#ff0000';\r\nctx.fillRect(0, 0, 320, 240);\r\n```"},"comment":{"url":"https://api.github.com/repos/lovell/sharp/issues/comments/382466944","html_url":"https://github.com/lovell/sharp/issues/1196#issuecomment-382466944","issue_url":"https://api.github.com/repos/lovell/sharp/issues/1196","id":382466944,"user":{"login":"lovell","id":210965,"avatar_url":"https://avatars3.githubusercontent.com/u/210965?v=4","gravatar_id":"","url":"https://api.github.com/users/lovell","html_url":"https://github.com/lovell","followers_url":"https://api.github.com/users/lovell/followers","following_url":"https://api.github.com/users/lovell/following{/other_user}","gists_url":"https://api.github.com/users/lovell/gists{/gist_id}","starred_url":"https://api.github.com/users/lovell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lovell/subscriptions","organizations_url":"https://api.github.com/users/lovell/orgs","repos_url":"https://api.github.com/users/lovell/repos","events_url":"https://api.github.com/users/lovell/events{/privacy}","received_events_url":"https://api.github.com/users/lovell/received_events","type":"User","site_admin":false},"created_at":"2018-04-18T17:31:32Z","updated_at":"2018-04-18T17:31:32Z","author_association":"OWNER","body":"Colour JPEG images are 3 channel so `raw` will be RGB for these.\r\n\r\nSee https://github.com/lovell/sharp/issues/554#issuecomment-371405022 for an example of adding a 4th channel using `joinChannel`.\r\n\r\nThere's also a future possible enhancement https://github.com/lovell/sharp/issues/1153 that will simplify the concatenation of an alpha channel to a non-transparent input."}}
{"actor":{"display_login":"lovell"}}