Linux command
magick-import 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Capture screenshot
magick import [screenshot.png]
Capture specific window
magick import -window [window-id] [output.png]
Capture root window
magick import -window root [desktop.png]
Capture after delay
magick import -pause [5] [screenshot.png]
Capture with specific quality
magick import -quality [90] [screenshot.jpg]
说明
magick import captures screenshots from X11 displays. Part of ImageMagick. Can capture the entire screen, specific windows, or selected regions. Outputs to any supported image format.
参数
- -window _id_
- Capture specific window by ID or name (use "root" for entire screen).
- -pause _seconds_
- Delay in seconds before capture.
- -crop _geometry_
- Crop the captured image to specified size and offset.
- -frame
- Include window manager frame in capture.
- -screen
- Capture the entire screen instead of a single window.
- -border
- Include window border in the output image.
- -descend
- Obtain image by descending the window hierarchy.
- -snaps _value_
- Number of screen snapshots to take.
- -quality _value_
- Set output compression quality (e.g., JPEG quality 1-100).
- -silent
- Operate silently without audio notification.
- -resize _geometry_
- Resize the captured image.
FAQ
What is the magick-import command used for?
magick import captures screenshots from X11 displays. Part of ImageMagick. Can capture the entire screen, specific windows, or selected regions. Outputs to any supported image format.
How do I run a basic magick-import example?
Run `magick import [screenshot.png]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -window _id_ do in magick-import?
Capture specific window by ID or name (use "root" for entire screen).