Capture some or all of an X server screen, and save the image to a file. Part of the ImageMagick library.
import -window root {{output.postscript}}
import -window root -display {{remote_host}}:{screen}.{display} {{output.png}}
xwininfo
, into the JPEG format:import -window {{window_id}} {{output.jpg}}