Sunday, November 5, 2023

Taking a screenshot and creating thumbnail of webpage html as an image via command line

There are a few options to take screenshot of a webpage or save a webpage as an image on the disk via the command line. This can allow you to create a thumbnail of a web site easily by one command on the terminal.

 

Using chrome to save a webpage as an image:

chrome --screenshot=google.png --headless --window-size=1024,768 https://www.google.com/ 

 

Using cutycapt to screenshot a webpage:

https://cutycapt.sourceforge.net/

 

Using webkit2png to create site thumbnail:

https://paulhammond.org/webkit2png

 

You can also use Midori browser



No comments:

Post a Comment