{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/node-canvas/issues/512","labels_url":"https://api.github.com/repos/Automattic/node-canvas/issues/512/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/node-canvas/issues/512/comments","events_url":"https://api.github.com/repos/Automattic/node-canvas/issues/512/events","html_url":"https://github.com/Automattic/node-canvas/issues/512","id":56491756,"number":512,"title":"drawImage bug in 1.2.0","user":{"login":"bmustata","id":9622838,"avatar_url":"https://avatars.githubusercontent.com/u/9622838?v=3","gravatar_id":"","url":"https://api.github.com/users/bmustata","html_url":"https://github.com/bmustata","followers_url":"https://api.github.com/users/bmustata/followers","following_url":"https://api.github.com/users/bmustata/following{/other_user}","gists_url":"https://api.github.com/users/bmustata/gists{/gist_id}","starred_url":"https://api.github.com/users/bmustata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmustata/subscriptions","organizations_url":"https://api.github.com/users/bmustata/orgs","repos_url":"https://api.github.com/users/bmustata/repos","events_url":"https://api.github.com/users/bmustata/events{/privacy}","received_events_url":"https://api.github.com/users/bmustata/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-02-04T07:50:49Z","updated_at":"2015-03-13T13:51:33Z","closed_at":null,"body":"Currently in version 1.2.0 (Linux) there is a drawImage bug where the image is not draw with it's full size when using the ctx.drawImage() command. This command is working correctly in version 1.1.6.\r\n\r\n```javascript\r\nvar Canvas = require('canvas')\r\n, Image = Canvas.Image\r\n, canvas = new Canvas(640, 471)\r\n, ctx = canvas.getContext('2d')\r\n, fs = require('fs');\r\n\r\nfs.readFile(__dirname + '/images/capture.png', function(err, squid){\r\n    if (err) throw err;\r\n    img = new Image;\r\n    img.src = squid;\r\n    ctx.drawImage(img, 243, 95, 153, 273);\r\n\r\n    fs.writeFile('output/out.png', canvas.toBuffer());\r\n});\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Automattic/node-canvas/issues/comments/78979343","html_url":"https://github.com/Automattic/node-canvas/issues/512#issuecomment-78979343","issue_url":"https://api.github.com/repos/Automattic/node-canvas/issues/512","id":78979343,"user":{"login":"selaux","id":848854,"avatar_url":"https://avatars.githubusercontent.com/u/848854?v=3","gravatar_id":"","url":"https://api.github.com/users/selaux","html_url":"https://github.com/selaux","followers_url":"https://api.github.com/users/selaux/followers","following_url":"https://api.github.com/users/selaux/following{/other_user}","gists_url":"https://api.github.com/users/selaux/gists{/gist_id}","starred_url":"https://api.github.com/users/selaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selaux/subscriptions","organizations_url":"https://api.github.com/users/selaux/orgs","repos_url":"https://api.github.com/users/selaux/repos","events_url":"https://api.github.com/users/selaux/events{/privacy}","received_events_url":"https://api.github.com/users/selaux/received_events","type":"User","site_admin":false},"created_at":"2015-03-13T13:51:33Z","updated_at":"2015-03-13T13:51:33Z","body":"Although the fix was merged, I still experience the issue on current master."}}