scrot is the default screenshot tool on LXDE that works with other desktop environments too. Given its few dependencies and tiny size it is much more powerful than it seems. scrot depends on the imlib2 library. scrot stands for SCReenshOT. scrot works best when run from the terminal. Features:
- Take screenshots of the desktop or a window or a selected region
- Grab window manager border along with the window
- Add delay in seconds with countdown before taking screenshot
- Execute an application on the image after taking a screenshot
- Take images of varying quality (1-100). Default is 75.
- Take images from multiple displays and stitch together
- Generate thumbnail (as per input percentage) along with image
- Saves image as PNG by default or if output filename is not available in cmdline arguments. scrot detects extensions to generate the image format. Creates JPEG when an extension with .jpg is provided as output filename.
To install on Ubuntu:
$ sudo apt-get install scrot
An example with explanation of the options used:
$ scrot -s -b -d 5 -c -q 100 myshot.jpg options: -s: select a window or rectangle with the mouse -b: grab border -d: wait for 5 seconds before taking screenshot -c: show a countdown for the delay -q: grab image at 100% quality
Refer to the man pages for detailed explanation of all the cmdline options. It is available in the default repositories of most major distros.