mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-12-26 18:32:41 +03:00
17 lines
530 B
Markdown
17 lines
530 B
Markdown
# import
|
|
|
|
> Capture some or all of an X server screen, and save the image to a file.
|
|
> Part of the ImageMagick library.
|
|
|
|
- Capture the entire X server screen in the PostScript image format:
|
|
|
|
`import -window root {{output.postscript}}`
|
|
|
|
- Capture contents of a remote X server screen in the PNG image format:
|
|
|
|
`import -window root -display {{remote_host}}:{screen}.{display} {{output.png}}`
|
|
|
|
- Capture a specific window, given its ID as displayed by `xwininfo`, into the JPEG format:
|
|
|
|
`import -window {{window_id}} {{output.jpg}}`
|