{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/node-canvas/issues/481","repository_url":"https://api.github.com/repos/Automattic/node-canvas","labels_url":"https://api.github.com/repos/Automattic/node-canvas/issues/481/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/node-canvas/issues/481/comments","events_url":"https://api.github.com/repos/Automattic/node-canvas/issues/481/events","html_url":"https://github.com/Automattic/node-canvas/issues/481","id":46584733,"number":481,"title":"[Error: currently only image/png is supported]","user":{"login":"jerryni","id":7235595,"avatar_url":"https://avatars.githubusercontent.com/u/7235595?v=3","gravatar_id":"","url":"https://api.github.com/users/jerryni","html_url":"https://github.com/jerryni","followers_url":"https://api.github.com/users/jerryni/followers","following_url":"https://api.github.com/users/jerryni/following{/other_user}","gists_url":"https://api.github.com/users/jerryni/gists{/gist_id}","starred_url":"https://api.github.com/users/jerryni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerryni/subscriptions","organizations_url":"https://api.github.com/users/jerryni/orgs","repos_url":"https://api.github.com/users/jerryni/repos","events_url":"https://api.github.com/users/jerryni/events{/privacy}","received_events_url":"https://api.github.com/users/jerryni/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-10-23T03:19:07Z","updated_at":"2016-02-15T21:34:26Z","closed_at":"2016-02-15T21:34:26Z","body":"I already install canvas with follow command successfully:\r\n`$ npm install canvas --with-jpeg --with-gif`\r\nand [refered to this solution](https://github.com/Automattic/node-canvas/issues/195)\r\n\r\n* os: MAC OS 10.10,\r\n* node: v0.10.32\r\n\r\nand this is my code:\r\n\r\n```\r\nstage.toDataURL({\r\n mimeType: 'image/jpeg',\r\n quality: 0.5,\r\n callback: function(data){}\r\n});\r\n\r\n//in the kinetic.js \r\ntoDataURL: function(mimeType, quality) {\r\n            try {\r\n                // If this call fails (due to browser bug, like in Firefox 3.6),\r\n                // then revert to previous no-parameter image/png behavior\r\n                // mimeType = 'image/jpeg';\r\n                // quality = 0.5;\r\n                console.log('mimeType:' + mimeType);\r\n                console.log('lala:' + this._canvas.toDataURL(mimeType, quality));\r\n                return this._canvas.toDataURL(mimeType, quality);\r\n            }\r\n            catch(e) {\r\n                try {\r\n                    //my debug******************Error from here****************************\r\n                    console.log(e);\r\n                    return this._canvas.toDataURL();\r\n                }\r\n                catch(err) {\r\n                    Kinetic.Util.warn('Unable to get data URL. ' + err.message);\r\n                    return '';\r\n                }\r\n            }\r\n        }\r\n```\r\nMy ultilmate purpose is speed up the toDataURL callback...\r\n\r\nSomeone helps me! Thank you first!\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Automattic/node-canvas/issues/comments/184404397","html_url":"https://github.com/Automattic/node-canvas/issues/481#issuecomment-184404397","issue_url":"https://api.github.com/repos/Automattic/node-canvas/issues/481","id":184404397,"user":{"login":"LinusU","id":189580,"avatar_url":"https://avatars.githubusercontent.com/u/189580?v=3","gravatar_id":"","url":"https://api.github.com/users/LinusU","html_url":"https://github.com/LinusU","followers_url":"https://api.github.com/users/LinusU/followers","following_url":"https://api.github.com/users/LinusU/following{/other_user}","gists_url":"https://api.github.com/users/LinusU/gists{/gist_id}","starred_url":"https://api.github.com/users/LinusU/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LinusU/subscriptions","organizations_url":"https://api.github.com/users/LinusU/orgs","repos_url":"https://api.github.com/users/LinusU/repos","events_url":"https://api.github.com/users/LinusU/events{/privacy}","received_events_url":"https://api.github.com/users/LinusU/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T21:34:26Z","updated_at":"2016-02-15T21:34:26Z","body":"Closing this since it's an old thread, please see our new installation instructions and report back if you still have problems...\r\n\r\nI think that this was fixed by #685 "}}