{"action":"created","issue":{"url":"https://api.github.com/repos/plotly/plotly.js/issues/83","repository_url":"https://api.github.com/repos/plotly/plotly.js","labels_url":"https://api.github.com/repos/plotly/plotly.js/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/plotly/plotly.js/issues/83/comments","events_url":"https://api.github.com/repos/plotly/plotly.js/issues/83/events","html_url":"https://github.com/plotly/plotly.js/issues/83","id":120799061,"number":83,"title":"Snapshot routines should allow users to specify image width/height","user":{"login":"etpinard","id":6675409,"avatar_url":"https://avatars.githubusercontent.com/u/6675409?v=3","gravatar_id":"","url":"https://api.github.com/users/etpinard","html_url":"https://github.com/etpinard","followers_url":"https://api.github.com/users/etpinard/followers","following_url":"https://api.github.com/users/etpinard/following{/other_user}","gists_url":"https://api.github.com/users/etpinard/gists{/gist_id}","starred_url":"https://api.github.com/users/etpinard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etpinard/subscriptions","organizations_url":"https://api.github.com/users/etpinard/orgs","repos_url":"https://api.github.com/users/etpinard/repos","events_url":"https://api.github.com/users/etpinard/events{/privacy}","received_events_url":"https://api.github.com/users/etpinard/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/plotly/plotly.js/labels/enhancement","name":"enhancement","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-07T15:32:42Z","updated_at":"2016-02-04T20:21:38Z","closed_at":null,"body":"Motivated by https://github.com/plotly/plotly.js/issues/42#issuecomment-162520017\r\n\r\nAt the moment, the `Snapshot.toImage` has [hard-coded `width` and `height` parameters](https://github.com/plotly/plotly.js/blob/master/src/snapshot/toimage.js#L50-L51).\r\n\r\nSomething like:\r\n\r\n```js\r\nPlotly.Snapshot.toImage(gd, {format: 'png', width: 1000, height: 800});\r\n```\r\n\r\nMoreover, maybe the on-success handler used by the [modebar `toImage` button](https://github.com/plotly/plotly.js/blob/master/src/components/modebar/buttons.js#L73-L83) could be used as the default on-success handler to `Snapshot.toImage` "},"comment":{"url":"https://api.github.com/repos/plotly/plotly.js/issues/comments/180032273","html_url":"https://github.com/plotly/plotly.js/issues/83#issuecomment-180032273","issue_url":"https://api.github.com/repos/plotly/plotly.js/issues/83","id":180032273,"user":{"login":"gramster","id":2762632,"avatar_url":"https://avatars.githubusercontent.com/u/2762632?v=3","gravatar_id":"","url":"https://api.github.com/users/gramster","html_url":"https://github.com/gramster","followers_url":"https://api.github.com/users/gramster/followers","following_url":"https://api.github.com/users/gramster/following{/other_user}","gists_url":"https://api.github.com/users/gramster/gists{/gist_id}","starred_url":"https://api.github.com/users/gramster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gramster/subscriptions","organizations_url":"https://api.github.com/users/gramster/orgs","repos_url":"https://api.github.com/users/gramster/repos","events_url":"https://api.github.com/users/gramster/events{/privacy}","received_events_url":"https://api.github.com/users/gramster/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T20:21:38Z","updated_at":"2016-02-04T20:21:38Z","body":"Is there a way to get raw PNG data from a plot snapshot? We would like to do this so that we can generate a PNG output in an IPython notebook so that when viewing the .ipynb file in Github or elsewhere where Javascript is not executed there is a static fallback version that gets displayed.\r\n\r\n"}}