How to Take Full Length Screenshots of Websites from Linux Terminal

Taking screenshots is something that we do often, and one of the limitations we always face is the ability to take a full length image of a website. This feature is not included in most screen capture tools, and you often need a separate software for that. For Linux users who love the command line, here is a quick and easy way you can use to take full length screenshots of websites directly from the terminal.

Gnome-web-photo is a Gnome application that you can use to capture screenshots of websites. As a Gnome application, it is not limited to any distro. You can install it on your Linux system as long as it supports GTK+ 3.0.

In a Ubuntu-based distro, you can install it with the command:

For Fedora, or yum-based distro, use the command:

Usage

To get started, you just need to type the command:

Replace “URL” with the url of the website and change “output.png” to the name you want to save the file as.

This will produce an image like this:

gnome-web-photo-mte-screenshot

Gnome-web-photo doesn’t work with jpg format, so you have to use png for the image.

There are other modes that you can use as well. For example, if you want to capture a thumbnail image (256x256px) instead of the full-length sreenshot, add “--mode=thumbnail” to the command:

To capture the image as a PDF, use the “--mode=print” argument:

To add a timeout, just in case the website cannot be retrieved, you can add the argument “--timeout=T” to the command:

Alternatively, you might also want to add a delay before it takes the screenshot. Add the argument “–delay=D” to the command:

By default, gnome-web-photo will only take a screenshot with a width of 1024px. You can change the width by adding the “--width=W” arugment.

Conclusion

Gnome-web-photo is a simple, yet useful, tool to take screenshots of websites. And being a command line tool, it is good for server use where most GUI applications are useless. Try it out and let us know if it works for you.

Image credit: Is this article useful?

4 comments

  1. For someone using KDE, how many Gnome dependecies does gnome-web-photo pull in?

  2. Thanks, very useful.

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

    1. Are you using Ubuntu? You can try to install it from the Ubuntu Software Center.

Comments are closed.

Sponsored Stories

Related Posts

How to Use the ss Command to Monitor Network Connections in Linux
SCP vs SFTP: Which One Should You Use for File Transfer
5 of the Best Laptops for Linux in 2019
How to Sync Microsoft OneDrive with Linux
3 of the Best System Monitor Tools for Ubuntu
How to Change the Keyboard Layout in Linux
How to Transfer Files Between Linux and Windows via LAN
How to Schedule Commands in Linux with the “at” Utility