From 008080dc784b35c7d482f15098cfcde698ba5875 Mon Sep 17 00:00:00 2001 From: Jeef Date: Sun, 19 Feb 2017 04:06:26 -0500 Subject: [PATCH] import: add page (#1255) --- pages/common/import.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/common/import.md diff --git a/pages/common/import.md b/pages/common/import.md new file mode 100644 index 000000000..bd0b9ae1a --- /dev/null +++ b/pages/common/import.md @@ -0,0 +1,16 @@ +# import + +> Capture some or all of an X server screen and save the image to a file. +> Part of ImageMagick library. + +- Capture the entire X server screen in the Postscript image format: + +`import -window root {{output.postscript}}` + +- Capture contents of remote x server screen in the `png` image format: + +`import -window root -display {{remote_host}}:{screen}.{display} {{output.png}}` + +- Capture specific window with ID as displayed by `xwininfo` into `jpg` format: + +`import -window {{window_id}} {{output.jpg}}`