Created
April 30, 2013 19:35
-
-
Save paulmars/5491298 to your computer and use it in GitHub Desktop.
How to take a huge screen show of mbostock's work
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| phantomjs screenshot.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var viewportSize = {width: 10000, height: 3000}; | |
| var page = require('webpage').create(); | |
| page.viewportSize = viewportSize; | |
| page.open('http://bl.ocks.org/mbostock/1062288', function () { | |
| page.zoomFactor = 15.0; | |
| setTimeout(function(){ | |
| page.render('mbostock_15.png'); | |
| phantom.exit(); | |
| }, 3000); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment