Use the import program to capture some or all of an X server screen and save the image to a file. import captures the window selected by clicking or program argument. See Command Line Processing for advice on how to structure your import command or see below for example usages of the command.
Example Usage
We list a few examples of the import command here to illustrate its usefulness and ease of use. To get started, let's import an image of an X11 window in the JPEG format:
$ magick import rose.jpg
To select the area you want to capture, move the cursor to the desired window and click (or click and drag) the left mouse button. To cancel the capture, click the right mouse button.
To capture the entire X server screen in the PostScript image format:
$ magick import -window root screen.ps
This command enables you to select a specific area on your screen and copy the selection to your clipboard. You can use this feature to conveniently post images on applications that support image uploading:
$ magick import clipboard:
You can find additional examples of using import in Examples of ImageMagick Usage .
Option Summary
The import command recognizes these options. Click on an option to get more details about how that option works.