Scrot is a small and practical tool in Linux. It uses command line-based methods. Easy to use. Use Ubuntu as an example to introduce how to use scrot
Install: sudo apt-Get install scrot
1. capture the entire desktop: scrot pic1.jpg. The command will capture the entire desktop and save the name pic1.jpg in the current directory.
2. capture window: scrot-BS pic2.jpg # This command will capture a window. Option B will capture its border when capturing the window, option s allows the user to select the window to be crawled with the mouse (click it in the window to be crawled)
3. Area: scrot-s pic3.jpg # This command is used to select the rectangular area.
4. Timing: scrot-CD 10 pic4.jpg # This command is used for timing. Option D is followed by a number of 10, indicating that the timing is 10 seconds. Option C shows the countdown.
5. Generate a thumbnail: scrot-T 70% pic5.jpg. In addition to generating pic5.jpg, a thumbnail with the name pic5-thumb.jpg scaled in percentage of 70% will be generated.
6. Change Quality: scrot-Q 80 pic6.jpg # This Command Option Q is used to determine the quality. The value range is 1-. The larger the value, the better the quality, and the larger the occupied space. The default value is 75.