It is really inconvenient to learn about Linux and find that there is no tool. I installed a shutter software package on the Internet for a long time, and I finally found the scrot screenshot, open the terminal sudo apt-getinstall scrot, install scrot, and find various screenshot commands on the Internet:
After the installation is complete, we can use the command line to operate it:
// You can intercept images in. jpg and. PNG formats. I have not tried other formats. I don't know if they can intercept images.
// Capture the desktop, capture the entire desktop, and save it as a top.png file.
Command: scrot topics top.png
// If you do not know where to put it, use the find command.
Command: Find-name shorttop.png
// Capture the window,-B captures the window and its outer border, and-s allows the user to select the window
Command: scrot-BS unzip PNG
// Capture the selection area, hold down the left mouse button, and drag to obtain
Command: scrot-s rect.png
// Latency capture.-D indicates the latency, 10 indicates the number of seconds, and-C indicates the start of the countdown. Unfortunately, it cannot be used with-s.
Command: scrot-CD 10 menu.png
// Generate a thumbnail. The following shows the 50% thumbnail of the source image.
Command: scrot-T 50% thumb.png
// The Change Quality-Q option is used to change the quality of the captured image, ranging from 1 to 100. The default value is 75. The larger the value, the higher the image quality. On the contrary, the lower the image compression ratio and the larger the occupied space.
Command: scrot-Q 70 quality.png
// Set the Save path. $ F indicates the original save path/file name.
Command: scrot action.png-e 'mv $ f ~ /Images /'
The path here must exist. If it does not exist, it will be saved to the/home/user folder.
In actual use, I did not specify a path and saved it to the root,
The commands found on the Internet are as follows:
Syntax list of a scrot:
Scrot usage:
Summary
Scrot [Options]
Description
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: when selecting a window, it also contains a window border.
-C, -- count: Countdown to latency
-D, -- delay num seconds
-E, -- exec app executes the app for the saved Image
-Q, -- high quality num image quality (1-100) means that the file size is large and the compression ratio is low.
-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.
Description
-- Exec and file names can use format specifiers that can be expanded by scrot. (This sentence does not understand what it means .)
There are two types of specifiers.
Description 1: The prefix '%' 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 '$'. The following identifiers are recognizable:
$ F path/File Name of the image (ignored if it is in the file name)
$ N Image File Name (ignored if it is 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 the character '$'
N print new lines (ignored in file name)
Bytes -----------------------------------------------------------------------------------------------------------------------
There is also a new usage, after the completion of the software open directly
Command: scrot-S ~ /Abc.png-e 'shotwell $ F'