{"action":"created","issue":{"url":"https://api.github.com/repos/exupero/saveSvgAsPng/issues/37","labels_url":"https://api.github.com/repos/exupero/saveSvgAsPng/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/exupero/saveSvgAsPng/issues/37/comments","events_url":"https://api.github.com/repos/exupero/saveSvgAsPng/issues/37/events","html_url":"https://github.com/exupero/saveSvgAsPng/issues/37","id":98437702,"number":37,"title":"saveSvgAsPng() produces dataURI in address field and saves file without extension in Safari","user":{"login":"sheriferson","id":3160968,"avatar_url":"https://avatars.githubusercontent.com/u/3160968?v=3","gravatar_id":"","url":"https://api.github.com/users/sheriferson","html_url":"https://github.com/sheriferson","followers_url":"https://api.github.com/users/sheriferson/followers","following_url":"https://api.github.com/users/sheriferson/following{/other_user}","gists_url":"https://api.github.com/users/sheriferson/gists{/gist_id}","starred_url":"https://api.github.com/users/sheriferson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sheriferson/subscriptions","organizations_url":"https://api.github.com/users/sheriferson/orgs","repos_url":"https://api.github.com/users/sheriferson/repos","events_url":"https://api.github.com/users/sheriferson/events{/privacy}","received_events_url":"https://api.github.com/users/sheriferson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-31T17:37:51Z","updated_at":"2015-08-17T12:59:18Z","closed_at":null,"body":"Hi there,\r\n\r\nI am trying to save an SVG with id \"timeseriesSVG\" to a png.\r\n\r\nI use this function call:\r\n`saveSvgAsPng(document.getElementById(\"timeseriesSVG\"), \"timeseries.png\");`\r\n\r\nThe image shows up just fine in the Safari tab. However, the address bar doesn't show a path to the png, it's a large chunk of what I'm assuming is dataURI. Example in [this gist](https://gist.github.com/sheriferson/f9add26b9197438eeb93).\r\n\r\nIf I right-click on the image and click Save Image to \"Downloads\", the image is saved with filename \"Unknown\" and no extension, no matter what I suggest as a filename in the function call.\r\n\r\nIf I drag the image to the desktop, then it does get a png extension, but the filename is still \"Unknown.png\".\r\n\r\nAny ideas on what could be going wrong? Or is this expected behaviour and I'm misinterpreting something?\r\n\r\nThis happens on Safari 8.0.7, on OS X 10.10.4."},"comment":{"url":"https://api.github.com/repos/exupero/saveSvgAsPng/issues/comments/131809621","html_url":"https://github.com/exupero/saveSvgAsPng/issues/37#issuecomment-131809621","issue_url":"https://api.github.com/repos/exupero/saveSvgAsPng/issues/37","id":131809621,"user":{"login":"exupero","id":287159,"avatar_url":"https://avatars.githubusercontent.com/u/287159?v=3","gravatar_id":"","url":"https://api.github.com/users/exupero","html_url":"https://github.com/exupero","followers_url":"https://api.github.com/users/exupero/followers","following_url":"https://api.github.com/users/exupero/following{/other_user}","gists_url":"https://api.github.com/users/exupero/gists{/gist_id}","starred_url":"https://api.github.com/users/exupero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exupero/subscriptions","organizations_url":"https://api.github.com/users/exupero/orgs","repos_url":"https://api.github.com/users/exupero/repos","events_url":"https://api.github.com/users/exupero/events{/privacy}","received_events_url":"https://api.github.com/users/exupero/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T12:59:18Z","updated_at":"2015-08-17T12:59:18Z","body":"I don't know of any way to download files differently. I'm open to suggestions."}}