tldr/pages/common/import.md

18 lines
583 B
Markdown
Raw Normal View History

2017-02-19 09:06:26 +00:00
# import
2017-04-15 10:02:09 +01:00
> Capture some or all of an X server screen, and save the image to a file.
> Part of ImageMagick.
> More information: <https://imagemagick.org/script/import.php>.
2017-02-19 09:06:26 +00:00
- Capture the entire X server screen into a PostScript file:
2017-02-19 09:06:26 +00:00
`import -window root {{path/to/output.ps}}`
2017-02-19 09:06:26 +00:00
- Capture contents of a remote X server screen into a PNG image:
2017-02-19 09:06:26 +00:00
`import -window root -display {{remote_host}}:{{screen}}.{{display}} {{path/to/output.png}}`
2017-02-19 09:06:26 +00:00
- Capture a specific window given its ID as displayed by `xwininfo` into a JPEG image:
2017-02-19 09:06:26 +00:00
`import -window {{window_id}} {{path/to/output.jpg}}`