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.
|
2021-08-23 20:33:24 +01:00
|
|
|
> More information: <https://imagemagick.org/script/import.php>.
|
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}}`
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Capture contents of a remote X server screen in the PNG format:
|
2017-02-19 09:06:26 +00:00
|
|
|
|
2021-08-15 18:59:09 +01: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}}`
|