Take a screenshot of a full-length webpage on a Linux terminal

Source: Internet
Author: User

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:

  1. $ 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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.