[Ann] web2image to take screenshot of web page

73 views
Skip to first unread message

Tong Sun

unread,
Jul 23, 2017, 7:45:24 PM7/23/17
to golang-nuts
Please take a look at 
https://github.com/suntong/web2image#-web2image

$ web2image
Web to image
built on
2017-07-23


Tool to take screenshot from a web page


Usage:
  web2image OPTIONS
... URL IMAGE-FILE


Options:


 
-h, --help       display help information
 
-d, --headless   use chrome-headless docker as client instead of chrome
 
-c, --css       *the CSS selector for the region to take the screenshot of
 
-v, --verbose    verbose mode (multiple -v options increase the verbosity.)



Example:

web2image -d -c '#main-wrapper' 'http://www.cmore.se/film/3643033-deadpool' deadpool.png

check the result at 

All patches welcome.

Cheers

Konstantin Khomoutov

unread,
Jul 24, 2017, 6:45:40 AM7/24/17
to Tong Sun, golang-nuts
On Sun, Jul 23, 2017 at 04:45:24PM -0700, Tong Sun wrote:

> Please take a look at
> https://github.com/suntong/*web2image*#-web2image
[...]
> -d, --headless use chrome-headless docker as client instead of chrome
[...]

I think it worth mentioning up-front in the README file that this tool
relies on the presence of the Chrome (or alike) browser to do the heady
lifting, that is, it's not standalone.

Tong Sun

unread,
Jul 24, 2017, 9:02:51 AM7/24/17
to Konstantin Khomoutov, golang-nuts
It is right there in the README file, right after the usage text


Reply all
Reply to author
Forward
0 new messages