Last updated on November 26, 2020 by Dan Nanni
Are you trying to capture a screenshot of a web page? You could screen capture the web page manually after loading it on a web browser. However, if the layout of the web page does not fit into the screen of your computer, the screenshot wouldn't cover the whole page, but only part of it.
In Linux, there is a GNOME application called gnome-web-photo
that can generate a full-size screenshot or thumbnail of a website or any URL.
In this tutorial, I will describe how to take a full-length screenshot of a web page by using gnome-web-photo
.
gnome-web-photo
on LinuxSince gnome-web-photo
is a GNOME application, you need to use a desktop environment in Linux.
$ sudo apt-get install gnome-web-photo
$ sudo yum install gnome-web-photo
If you are a CentOS or RedHat user, be aware that gnome-web-photo
depends on GTK+ 3.0. This means that gnome-web-photo
is not compatible with GNOME 2, which is shipped with CentOS/RHEL 6 and higher.
gnome-web-photo
To take a screenshot of a web page without scrolling down the page, use the following command:
$ gnome-web-photo -t 0 --mode=photo http://www.washingtonpost.com output.png
The -t
option specifies the timeout value (in seconds) for screenshot generation. -t 0
means that timeout is disabled.
Using gnome-web-photo
, you can also generate a small thumbnail of a webpage as follows. Optionally, you can specify thumbnail size by using -s
option. The default thumbnail size is 256x256.
$ gnome-web-photo -t 0 -s 128 --mode=thumbnail http://www.washingtonpost.com output.png
If you want to save a screenshot of a website as a multi-page PDF, so that you can print it out later, you can use the following command.
$ gnome-web-photo -t 0 --mode=print http://www.washingtonpost.com output.pdf
This website is made possible by minimal ads and your gracious donation via PayPal or credit card
Please note that this article is published by Xmodulo.com under a Creative Commons Attribution-ShareAlike 3.0 Unported License. If you would like to use the whole or any part of this article, you need to cite this web page at Xmodulo.com as the original source.
Xmodulo © 2021 ‒ About ‒ Write for Us ‒ Feed ‒ Powered by DigitalOcean