JavaScript -- take a picture of a website
On my website I want to load an image that is an exact picture of what you would see on your screen if you were scrolled to the top of a targ开发者_如何学Goet website -- just a snapshot with no functionality behind it. So if I ran this code with an NY Times article an image of the article's page would be returned. How do I do this?
You might look at Phantom JS. It includes a "render" method that can output a .png image of any rendered web page. See the "rendering" section of this phantomjs wiki page.
精彩评论