← 返回命令列表

Linux command

import 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Capture window by click

import screenshot.png

Capture entire screen

import -window root screenshot.png

Capture specific window

import -window [window_id] screenshot.png

Capture with delay

import -pause [5] screenshot.png

Capture region

import -crop [640x480+100+100] screenshot.png

Set image format

import screenshot.[jpg|png|gif]

说明

import is an ImageMagick utility for capturing X Window screenshots. It can capture the entire screen, specific windows, or user-selected regions. The tool supports various output formats determined by file extension. It integrates with the ImageMagick processing pipeline for immediate manipulation.

参数

-window _ID_
Capture specific window ID or "root" for full screen.
-pause _SECONDS_
Delay before capture.
-crop _GEOMETRY_
Crop to specified geometry.
-frame
Include window frame.
-border
Include window border.
-screen
Capture from virtual root window.
-silent
Suppress progress monitor.
--help
Display help information.

FAQ

What is the import command used for?

import is an ImageMagick utility for capturing X Window screenshots. It can capture the entire screen, specific windows, or user-selected regions. The tool supports various output formats determined by file extension. It integrates with the ImageMagick processing pipeline for immediate manipulation.

How do I run a basic import example?

Run `import screenshot.png` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -window _ID_ do in import?

Capture specific window ID or "root" for full screen.