2 pages of the command line screenshot tool Recommendation _ Related tips

Source: Internet
Author: User
Tags save file

Now many browsers or browser toolbars, Plug-ins provide screenshots of the function, but most of them need a mouse or keyboard manual operation, but not through the command line automation. Sometimes we may need to regularly screen screenshots of some of the pages, or a lot of screenshots of multiple URLs, then these need to manually operate screenshots tool or plugin is not enough. Fortunately, there are some free web screen screenshots or browser plug-ins that can be operated on a command-line basis to help us solve this problem, and here are two things I use frequently.

The first is IECAPT, the official home page in http://iecapt.sourceforge.net/, which is a free and open source software, has C + + and C # two languages version.

The software does not have a GUI and can only be run on a purely command-line basis, and the command to run is:

Copy Code code as follows:
Iecapt–url=http://jb51.net/–out=localfile.png

One of the parameters –url is followed by the site you want to screenshot of the address, –out followed by the screenshot after the image file save name. These two parameters are most commonly used, and other parameters, such as –delay, can specify how many seconds a page is opened and then screenshots, which is useful when intercepting some pages that use lazy loading techniques such as Ajax. More parameters can be viewed with the iecapt–help command.

The software works fine, but, as its name says, it's based on IE, so it's basically only available on Windows systems. Screenshot when it is actually in the background to invoke the installation of the Internet IE browser on the page to render, in general, you see in IE browser a page is what it looks like, with iecapt cut the figure is also that way.

IECAPT's home page also introduces another Cross-platform WebKit-based Web Capture software cutycapt, which requires the support of the Qt library, which is almost the same as IECAPT, but with more flexible parameters, this is not covered in detail.

Another Web Capture tool that you can use in command line mode is the Firefox plugin pagesaver, and the home page is http://pearlcrescent.com/products/pagesaver/.

This plugin has a professional version to pay and a free basic version, for general Command line screenshots, the basic version is enough. After installation, it will be in the browser address bar next to add a camera icon button, click can be like a common web screenshot plug-in as the current page screenshot, you can click on the icon next to the bottom of the triangle to do some settings, such as the design of the default save file name rules. At the same time, you can take a screenshot of the specified URL from the command line, such as:

[Code]firefox-saveimage Http://jb51.net/[/code]

This command will call the system Firefox, open the specified URL and screenshot, if Firefox is not running, this command will first open Firefox, screenshots completed and then shut down Firefox. Note that if you want to use this plugin screenshot at the command line, it's best to turn off Firefox's "revert to last session" feature, otherwise the command line may have been stopped while the new page was open to confirm that you opened the previous session's interface.

After the screenshot, the picture will be saved in the current directory where the command is executed, the filename format needs to be set in the plugin's Option Palette (Professional Edition can specify the save file name in the screenshot command), and the picture can be saved in PNG or JPEG two formats. The plugin is based on Firefox, and the screenshots are also rendered through the Firefox browser.

Iecapt and Firefox pagesaver, a combination of the two based on IE, one based on Firefox, combined with some custom scripts, can basically meet the needs of most command line screenshots.

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.