tldr/pages/common/import.md

17 lines
528 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 the ImageMagick library.
2017-02-19 09:06:26 +00:00
2017-04-15 10:02:09 +01:00
- Capture the entire X server screen in the PostScript image format:
2017-02-19 09:06:26 +00:00
`import -window root {{output.postscript}}`
- Capture contents of a remote X server screen in the PNG format:
2017-02-19 09:06:26 +00:00
`import -window root -display {{remote_host}}:{{screen}}.{{display}} {{output.png}}`
2017-02-19 09:06:26 +00:00
2017-04-15 10:02:09 +01:00
- Capture a specific window, given its ID as displayed by `xwininfo`, into the JPEG format:
2017-02-19 09:06:26 +00:00
`import -window {{window_id}} {{output.jpg}}`