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.
|
2023-10-05 07:52:40 +01:00
|
|
|
> Part of ImageMagick.
|
2021-08-23 20:33:24 +01:00
|
|
|
> More information: <https://imagemagick.org/script/import.php>.
|
2017-02-19 09:06:26 +00:00
|
|
|
|
2023-10-05 07:52:40 +01:00
|
|
|
- Capture the entire X server screen into a PostScript file:
|
2017-02-19 09:06:26 +00:00
|
|
|
|
2023-10-05 07:52:40 +01:00
|
|
|
`import -window root {{path/to/output.ps}}`
|
2017-02-19 09:06:26 +00:00
|
|
|
|
2023-10-05 07:52:40 +01:00
|
|
|
- Capture contents of a remote X server screen into a PNG image:
|
2017-02-19 09:06:26 +00:00
|
|
|
|
2023-10-05 07:52:40 +01:00
|
|
|
`import -window root -display {{remote_host}}:{{screen}}.{{display}} {{path/to/output.png}}`
|
2017-02-19 09:06:26 +00:00
|
|
|
|
2023-10-05 07:52:40 +01:00
|
|
|
- Capture a specific window given its ID as displayed by `xwininfo` into a JPEG image:
|
2017-02-19 09:06:26 +00:00
|
|
|
|
2023-10-05 07:52:40 +01:00
|
|
|
`import -window {{window_id}} {{path/to/output.jpg}}`
|