LinuxReviws.org --get your your Linux knowledge
> Linux Reviews > Tips and Tricks >

Screenshot grabbing

How to make a screenshot of your desktop or an application

Using imagemagick

imagemagick is a collection of tools and libraries for image manipulation. Most distribustions come with imagemagick .

Gentoo package: media-gfx/imagemagick

To take a snapshot using Imagemagic:

import -window root screenshot.png

import manual page

Using xv

xv is another image manipulation program that can deal with almost all file formats. xv is not included in distributions installations, but packages are available for most. Example usage:

xv -grabdelay 2 myimage.jpg

xv manual page

gimp

To grab an image of the screen or a program in Gimp:

File -> Acquire -> Screen shot

Framebuffer Console

Use fbgrab to grab a screenshot in a framebuffer console.

fbgrab filename.png

kde

KDE comes with a handy program called ksnapshot that lets you with ease grab a screenshot of your desktop or a single window.

scrot

scrot is a small (66 kB) screen shot grabber based on imlib2. It has lots of options for autogenerating filenames, and can do fun stuff like taking screenshots of multiple displays and glueing them together. thanks to miztic for mentioning it

xwd

xwd (manual page) is a part of XFree, so chances are high you already have it installed. It can dump screenshots to .xwd files. This is not a common format. After taking a screenshot using xwd -root -out test.xwd the only programs I found capable of opening it were Gimp and xwud (manual page). thanks to lude for mentioning it


Copyright (c) 2000-2005 xiando Corp. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".

Meet new people