is a package that can easily convert any webpage into a image. Under the hood the conversion is made possible new headless options in Chrome 59
. In this post I’d like to show you how you can use Browsershot v2.
He starts with a bit of history about the package and the recent switch from PhantomJS (a now abandoned project) over to Chrome's screenshot handling for creating the web page captures. He then shows how to install Chrome 59, the first version to include this feature, into a unix-based environment. Next comes the package
and some example code of it in use: making a simple capture, setting the window size, manipulate the image post-capture and change it to grayscale.