{"action":"created","issue":{"url":"https://api.github.com/repos/fabricjs/fabric.js/issues/5913","repository_url":"https://api.github.com/repos/fabricjs/fabric.js","labels_url":"https://api.github.com/repos/fabricjs/fabric.js/issues/5913/labels{/name}","comments_url":"https://api.github.com/repos/fabricjs/fabric.js/issues/5913/comments","events_url":"https://api.github.com/repos/fabricjs/fabric.js/issues/5913/events","html_url":"https://github.com/fabricjs/fabric.js/issues/5913","id":502808852,"node_id":"MDU6SXNzdWU1MDI4MDg4NTI=","number":5913,"title":"toDataUrl returns blank image","user":{"login":"claudiorivetti","id":4954388,"node_id":"MDQ6VXNlcjQ5NTQzODg=","avatar_url":"https://avatars3.githubusercontent.com/u/4954388?v=4","gravatar_id":"","url":"https://api.github.com/users/claudiorivetti","html_url":"https://github.com/claudiorivetti","followers_url":"https://api.github.com/users/claudiorivetti/followers","following_url":"https://api.github.com/users/claudiorivetti/following{/other_user}","gists_url":"https://api.github.com/users/claudiorivetti/gists{/gist_id}","starred_url":"https://api.github.com/users/claudiorivetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claudiorivetti/subscriptions","organizations_url":"https://api.github.com/users/claudiorivetti/orgs","repos_url":"https://api.github.com/users/claudiorivetti/repos","events_url":"https://api.github.com/users/claudiorivetti/events{/privacy}","received_events_url":"https://api.github.com/users/claudiorivetti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-10-04T19:34:08Z","updated_at":"2019-10-05T06:15:28Z","closed_at":null,"author_association":"NONE","body":"<!-- BUG TEMPLATE -->\r\n## Version\r\n1.6.3\r\n\r\n## Test Case\r\nhttp://fiddle.jshell.net/softvar/9hrcp/show/\r\n\r\n## Information about environment\r\nNodejs or browser? browser\r\nWhich browsers? Chrome \r\n\r\n## Steps to reproduce\r\nclick on Canvas 2 PNG\r\n## Expected Behavior\r\npng snapshot\r\n## Actual Behavior\r\nblank image\r\n\r\nThis issue started after latest Chrome upgrades.\r\n"},"comment":{"url":"https://api.github.com/repos/fabricjs/fabric.js/issues/comments/538621081","html_url":"https://github.com/fabricjs/fabric.js/issues/5913#issuecomment-538621081","issue_url":"https://api.github.com/repos/fabricjs/fabric.js/issues/5913","id":538621081,"node_id":"MDEyOklzc3VlQ29tbWVudDUzODYyMTA4MQ==","user":{"login":"melchiar","id":9057412,"node_id":"MDQ6VXNlcjkwNTc0MTI=","avatar_url":"https://avatars2.githubusercontent.com/u/9057412?v=4","gravatar_id":"","url":"https://api.github.com/users/melchiar","html_url":"https://github.com/melchiar","followers_url":"https://api.github.com/users/melchiar/followers","following_url":"https://api.github.com/users/melchiar/following{/other_user}","gists_url":"https://api.github.com/users/melchiar/gists{/gist_id}","starred_url":"https://api.github.com/users/melchiar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melchiar/subscriptions","organizations_url":"https://api.github.com/users/melchiar/orgs","repos_url":"https://api.github.com/users/melchiar/repos","events_url":"https://api.github.com/users/melchiar/events{/privacy}","received_events_url":"https://api.github.com/users/melchiar/received_events","type":"User","site_admin":false},"created_at":"2019-10-05T06:15:28Z","updated_at":"2019-10-05T06:15:28Z","author_association":"CONTRIBUTOR","body":"This should probably be on Stack Overflow, but try opening the DataURL like this instead:\r\n\r\n> var image = new Image();\r\n> image.src = canvas.toDataURL('png')\r\n> var w = window.open(\"\");\r\n> w.document.write(image.outerHTML);\r\n\r\nhttp://jsfiddle.net/melchiar/z60cn5sr/"}}
{"actor":{"display_login":"melchiar"}}