How to take a full-length screenshot of a web page in Linux

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.

Since gnome-web-photo is a GNOME application, you need to use a desktop environment in Linux.

To install gnome-web-photo on Ubuntu or Debian:

$ sudo apt-get install gnome-web-photo

To install gnome-web-photo on Fedora:

$ 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.*.

To take a screenshot of a web page:

$ 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

Subscribe to Xmodulo

Do you want to receive Linux FAQs, detailed tutorials and tips published at Xmodulo? Enter your email address below, and we will deliver our Linux posts straight to your email box, for free. Delivery powered by Google Feedburner.

The following two tabs change content below.
Dan Nanni is the founder and also a regular contributor of Xmodulo.com. He is a Linux/FOSS enthusiast who loves to get his hands dirty with his Linux box. He likes to procrastinate when he is supposed to be busy and productive. When he is otherwise free, he likes to watch movies and shop for the coolest gadgets.
Your name can also be listed here. Write for us as a freelancer.

4 thoughts on “How to take a full-length screenshot of a web page in Linux

  1. Hi! Nice tutorial. The only problem is that it does not use my current screen size, but a smaller one (mine is 1862px and the screenshot's is around 1000px). Would you maybe know how to fix this?

  2. $ sudo apt-get install gnome-web-photo
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package gnome-web-photo is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    E: Package 'gnome-web-photo' has no installation candidate

Leave a comment

Your email address will not be published. Required fields are marked *