Take a full page screenshot with Firefox on the command-line

后端 未结 6 1550
梦如初夏
梦如初夏 2020-12-04 04:34

I\'m running Firefox on a Xvfb in a VPS. What I want to do is to take a full page screenshot of the page.

I can redirect Firefox to particular page using

<         


        
6条回答
  •  难免孤独
    2020-12-04 04:56

    I think what you are looking for is a utility which enables you to save a complete page opened in your browser into a png file. Most probably you are looking for a utility like commandlineprint2.

    After installing the extension, you just need to type the command:

    firefox -print http://google.com -printfile ~/foo.png
    

提交回复
热议问题