import
graphicsLinux/Unix
The import command is one of the most frequently used commands in Linux/Unix-like operating systems. import Capture an X server screen and save the image to a file
Quick Reference
Command Name:
import
Category:
graphics
Platform:
Linux/Unix
Basic Usage:
import [options] [arguments]
Common Use Cases
Syntax
import [options] filename
Options
Option | Description |
---|---|
-window ID |
Capture a specific window by its ID (use 'root' for entire screen) |
-display host:display.screen |
Specify the X server display to connect to |
-frame |
Include window manager frame in the capture |
-border |
Include window border in the capture |
-crop geometry |
Crop the captured image (WxH+X+Y format) |
-delay seconds |
Wait specified seconds before capturing |
-pause seconds |
Pause specified seconds between screen capture and saving |
-quality value |
JPEG/PNG compression level (1-100, higher is better quality) |
-format format |
Specify image format (png, jpg, tiff, etc.) |
-resize geometry |
Resize the image (e.g., 1024x768, 50%) |
-comment string |
Add a comment to the image metadata |
-annotate degrees text |
Annotate the image with text |
-colors value |
Set the number of colors in the image |
-monochrome |
Convert image to black and white |
-silent |
Operate silently (no beeps or messages) |
-verbose |
Print detailed information about the image |
-help |
Print usage information |
Examples
How to Use These Examples
The examples below show common ways to use the import
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.