[NBLUG/talk] "Capture Applications on screen in X"

Kyle Rankin greenfly at greenfly.net
Wed Sep 10 08:05:01 PDT 2003


On Tue, Sep 09, 2003 at 11:44:29PM -0700, ME wrote:
> Someone asked at this last meeting how to get stuff scraped of the screen
> as images with the GIMP.
> 
[snip]
> -ME

Another method is to use the "import" tool from Image Magick, which is
available as a package on most Linux distributions, to grab a screenshot of
an individual window, you type:

import some_window.jpg

and then drag the mouse cursor around whatever you want to take a
screenshot of.  To take a screenshot of the full screen you do the
following:

import -window root full_screen.jpg

note that you don't have to use .jpg, if you specify .png or one of the
other formats that it supports, it will use that instead.  I use this all
the time along with the date command to get date-stamped screenshots:

import -window desktop`date +%Y-%m-%d`.jpg

If I ran that today, I'd get: desktop-2003-09-10.jpg

-- 
Kyle Rankin (greenfly)
http://greenfly.org



More information about the talk mailing list