Take a screenshot of a web page in headless mode

firefox

  • A free and open source web browser.
    More information: <https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

firefox --headless --screenshot {{path/to/output_file.png}} {{https://example.com/}}

click the source code to copy install firefox on any operating system with command-not-found.com