Install scrot in centos

Source: Internet
Author: User
Scrot is a tool used in the command line. It supports full screen, window, selection, multiple devices, thumbnails, latency, and even specifies a program to open the captured image. Installation Method on centos:
#yum install giblib giblib-devel#wget http://linuxbrit.co.uk/downloads/scrot-0.8.tar.gz# tar xvzf scrot-0.8.tar.gz# cd scrot-0.8# make && make install

Scrot usage: Example (~ User main directory): 1. Full Screen and save the file name: scrot ~ /Abc.png 2. Capture the window. parameter B indicates the window with a border. You can specify the window in "S": scrot-BS ~ /Abc.png 3. Hover the mouse over the selected area: scrot-S ~ /Abc.png 4. latency capture. d Indicates latency, C countdown, 10 is the second, and it is useful when capturing menus and other things: scrot-CD 10 ~ /Abc.png 5. Generate a thumbnail. t indicates that a thumbnail is to be generated, 20% indicates the proportion of the thumbnail, and s indicates that the user-defined area is intercepted: scrot-T 20%-S ~ /Abc.png 6. Enable the S demarcation of an operation.-E adopts a certain action. Here, use gimp to open the image, scrot-S ~ /Abc.png-e 'gimp $ F' scrot [Options] scrot is a tool that uses the imlib2 library to capture screens and save images. Specifies the file name to save. If this parameter is not specified, the file name is saved in the current directory based on the current date and time. Option-h, -- help displays help and exits-V, -- version displays version information and exits-B, -- border contains window borders when selecting a window. -C, -- count: Countdown-D, -- delay num: num seconds-E, -- exec app: app-Q, -- high quality num image quality (1-100) means large files and low compression ratio. -M, -- multidisp are connected to multiple display devices respectively. -S, -- select Interactive Selection of a window or area with the mouse. -T, -- thumb num simultaneously generates a thumbnail. Num is the percentage of the thumbnail. The format specifiers -- exec and file names can be expanded by scrot. There are two types of specifiers. The description of '%' is interpreted by strfile (2. You can view the strftile manual for routine operations. These options are used to reference the current date. The second specifier is interpreted internally by Scort and prefixed with '$ '. recognizable specifiers: $ f image path/file name (ignored if in the file name) $ n Image File Name (ignored if in the file name) $ s image size (bytes) (ignored if the file name is used) $ P image pixel size $ W image width $ H Image Height $ t image format $ print character '$ 'n' Print a new line (if ignored in file name) from: https://github.com/coolheng/linux_config/blob/master/scrot-%E5%91%BD%E4%BB%A4%E8%A1%8C%E6%88%AA%E5%B1%8F%E5%B7%A5%E5%85%B7

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.