Capture a full-length webpage on a Linux terminal
Instead of taking notes or sending what we see to others, we often use screenshots to help us remember. But in general, if a webpage exceeds the screen height, We need to extract multiple pieces of content.
Download, install, and configure Ubuntu 14.04
Ubuntu 14.04 system:
Ubuntu 14.04 text tutorial on hard drive installation in Windows 7
For Linux, you will have a better solution: Use a GNOME application to intercept the entire page of a link. This application is called gnome-web-photo. This article describes how to install and use it.
Under the Ubuntu and Debian branches:
$ Sudo apt-get install gnome-web-photo
Under Fedora:
$ Sudo yum install gnome-web-photo
However, for CentOS and other RedHat branches, note that gnome-web-photo depends on the GTK + 3.0 software package. That is to say, gnome-web-photo is incompatible with GNOME 2 that comes with CentOS/RHEL 6.
To be a webpage:
$ Gnome-web-photo-t0 -- mode = photo http://www.bkjia.com bkjia.png
The preceding command captures the full length of bkjia homepage and stores it in the current working directory.
Output example:
-T this parameter can be used to set the generated timeout time. -T 0 indicates that the timeout parameter is disabled.
With gnome-web-photo, you can use the following command to generate a thumbnail for a webpage: (the default size is 256 × 256, but you can use "-s" to specify the size of the thumbnail)
$ Gnome-web-photo-t0-s128 -- mode = thumbnail http://www.bkjia.com bkjia.png
Output example:
If you want to take a webpage into a multi-page PDF file that can be printed, you can enter the following command:
- $ Gnome-web-photo-t 0 -- model = print http://www.bkjia.com bkjia.pdf
Note that this application does not support. jpg format.
This application should be helpful to all kinds of users. I often perform thumbnails and full length on webpages. I hope it will help you too.
This article permanently updates the link address: