{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/node-canvas/issues/610","labels_url":"https://api.github.com/repos/Automattic/node-canvas/issues/610/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/node-canvas/issues/610/comments","events_url":"https://api.github.com/repos/Automattic/node-canvas/issues/610/events","html_url":"https://github.com/Automattic/node-canvas/issues/610","id":102561769,"number":610,"title":"Cloning ImageData","user":{"login":"inssein","id":882228,"avatar_url":"https://avatars.githubusercontent.com/u/882228?v=3","gravatar_id":"","url":"https://api.github.com/users/inssein","html_url":"https://github.com/inssein","followers_url":"https://api.github.com/users/inssein/followers","following_url":"https://api.github.com/users/inssein/following{/other_user}","gists_url":"https://api.github.com/users/inssein/gists{/gist_id}","starred_url":"https://api.github.com/users/inssein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inssein/subscriptions","organizations_url":"https://api.github.com/users/inssein/orgs","repos_url":"https://api.github.com/users/inssein/repos","events_url":"https://api.github.com/users/inssein/events{/privacy}","received_events_url":"https://api.github.com/users/inssein/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-22T19:40:00Z","updated_at":"2015-08-23T04:26:48Z","closed_at":"2015-08-23T04:26:48Z","body":"I can't figure out how to clone an ImageData object, short of retrieving it again from the context.\r\n\r\nAll the methods I know of require ImageData.data to be a Uint8ClampedArray with the setter exposed. Is there anything I can do right now, short of waiting for https://github.com/Automattic/node-canvas/pull/604 to be merged?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Automattic/node-canvas/issues/comments/133779931","html_url":"https://github.com/Automattic/node-canvas/issues/610#issuecomment-133779931","issue_url":"https://api.github.com/repos/Automattic/node-canvas/issues/610","id":133779931,"user":{"login":"inssein","id":882228,"avatar_url":"https://avatars.githubusercontent.com/u/882228?v=3","gravatar_id":"","url":"https://api.github.com/users/inssein","html_url":"https://github.com/inssein","followers_url":"https://api.github.com/users/inssein/followers","following_url":"https://api.github.com/users/inssein/following{/other_user}","gists_url":"https://api.github.com/users/inssein/gists{/gist_id}","starred_url":"https://api.github.com/users/inssein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inssein/subscriptions","organizations_url":"https://api.github.com/users/inssein/orgs","repos_url":"https://api.github.com/users/inssein/repos","events_url":"https://api.github.com/users/inssein/events{/privacy}","received_events_url":"https://api.github.com/users/inssein/received_events","type":"User","site_admin":false},"created_at":"2015-08-23T04:26:48Z","updated_at":"2015-08-23T04:26:48Z","body":"Sorry, the issue was with something else. ```new Uint8ClampedArray(imageData.data)``` seems to clone the data just fine."}}